MimeMessage.cs :  » Network-Clients » MSNP-Helper-API » MSNP » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Network Clients » MSNP Helper API 
MSNP Helper API » MSNP » MimeMessage.cs
using System;
using System.Collections;

namespace MSNP{
  /// <summary>
  /// A type representing a message sent from a user in a session.
  /// </summary>
  /// <remarks>
  /// Various messages are sent by the MSN Messenger application. Many of them
  /// are not text meant for the user, such as the Typing Message (which notifies other users
  /// in the session that the specified user is currently typing a message). Be sure to check
  /// the Content-Type and ensure that it is text/plain before displaying it to a user
  /// or processing it as a user-typed message.
  /// </remarks>
  public class MimeMessage
  {
    private Hashtable  m_Headers;
    private String    m_Body;
    private String    m_SenderHandle;
    private String    m_SenderFriendlyName;

    internal MimeMessage(IDictionary headers, String body, String senderHandle, String senderFriendly)
    {
      m_Headers = new Hashtable(headers);
      m_Body    = body;
      m_SenderHandle = senderHandle;
      m_SenderFriendlyName = senderFriendly;
    }

    /// <summary>
    /// The body or text of the message
    /// </summary>
    /// <remarks>
    /// This mostly applies to user-typed messages and not system or management-related messages.
    /// Ensure the Content-Type header is text/plain before treating it as a user-typed message.
    /// </remarks>
    public String Body{ get{ return m_Body; } }

    /// <summary>
    /// A dictionary of headers included in the MIME header part of the message.
    /// </summary>
    /// <remarks>
    /// Every message must have the MIME-Version and Content-Type headers. Other headers may be
    /// included depending on the Content-Type of the message.
    /// </remarks>
    public IDictionary Headers{ get{ return (IDictionary)m_Headers; } }

    /// <summary>
    /// The handle (email) of the user who sent the message.
    /// </summary>
    public String SenderHandle{ get{ return m_SenderHandle; } }

    /// <summary>
    /// The friendly name (full name or display name) of the user who sent the message.
    /// </summary>
    public String SenderFriendlyName{ get{ return m_SenderFriendlyName; } }
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.