Packagecom.adobe.rtc.sharedModel.descriptors
Classpublic class ChatMessageDescriptor
ImplementsIValueObjectEncodable

ChatMessageDescriptor is a simple value-object to describe chat message properties.



Public Properties
 PropertyDefined by
  color : uint
The chat message sender-specified color.
ChatMessageDescriptor
  displayName : String
Display name of the chat message sender.
ChatMessageDescriptor
  msg : String
The chat message contents.
ChatMessageDescriptor
  publisherID : String
[Read-only] The sender's userID.
ChatMessageDescriptor
  recipient : String
For private messages intended for a specific recipient, an optional recipient userID.
ChatMessageDescriptor
  recipientDisplayName : String
For private messages intended for a specific recipient, the recipient's displayName.
ChatMessageDescriptor
  role : int = 10
For public messages intended for a role group rather than a specific recipient, role specifies the minimum role level required to receive the message.
ChatMessageDescriptor
  timeStamp : Number
[Read-only] The time the message was sent.
ChatMessageDescriptor
Public Methods
 MethodDefined by
  
ChatMessageDescriptor(p_msg:String = "")
Constructor.
ChatMessageDescriptor
Property detail
colorproperty
public var color:uint

The chat message sender-specified color.

displayNameproperty 
public var displayName:String

Display name of the chat message sender.

msgproperty 
public var msg:String

The chat message contents. The contents should not contain any HTML formatting Since formatting is done by using .color at the receiving end.

publisherIDproperty 
public var publisherID:String

[Read-only] The sender's userID.

recipientproperty 
public var recipient:String

For private messages intended for a specific recipient, an optional recipient userID. For messages sent to all recipients of a particular role level, see role.

recipientDisplayNameproperty 
public var recipientDisplayName:String

For private messages intended for a specific recipient, the recipient's displayName. For messages sent to all recipients of a particular role level, see role.

By default, when a user is present, their display name appears next to their message. When they leave, recipientDisplayName enables the chat window to continue displaying their name along with the old messages.

roleproperty 
public var role:int = 10

For public messages intended for a role group rather than a specific recipient, role specifies the minimum role level required to receive the message. For example, instead of using userID to limit recipients to a single specified user, you can use role to send a message to everyone with a minimum role level or above as follows:

timeStampproperty 
public var timeStamp:Number

[Read-only] The time the message was sent.

Constructor detail
ChatMessageDescriptor()constructor
public function ChatMessageDescriptor(p_msg:String = "")

Constructor.

Parameters
p_msg:String (default = "") — The message to send.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/sharedModel/descriptors/ChatMessageDescriptor.html