Class TipAddMessage
Message and event for adding a tip, and receiving notifications of messages being tipped.
Inheritance
System.Object
TipAddMessage
Implements
Namespace: TehGM.Wolfringo.Messages
Assembly: Wolfringo.Core.dll
Syntax
public class TipAddMessage : IWolfMessage
Constructors
| Improve this Doc View SourceTipAddMessage()
Creates a message instance.
Declaration
[JsonConstructor]
protected TipAddMessage()
TipAddMessage(WolfTimestamp, UInt32, UInt32, WolfTip.ContextType, IEnumerable<WolfTip>)
Creates a message instance.
Declaration
public TipAddMessage(WolfTimestamp messageID, uint groupID, uint authorID, WolfTip.ContextType contextType, IEnumerable<WolfTip> tips)
Parameters
Type | Name | Description |
---|---|---|
WolfTimestamp | messageID | ID (timestamp) of the message to tip. |
System.UInt32 | groupID | ID of the group where the message is in. |
System.UInt32 | authorID | ID of the message author. |
WolfTip.ContextType | contextType | Context type of the tip. |
System.Collections.Generic.IEnumerable<WolfTip> | tips | Tips to send. |
Properties
| Improve this Doc View SourceContextType
Context type of the tip.
Declaration
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter), new object[]{true})]
public WolfTip.ContextType ContextType { get; }
Property Value
Type | Description |
---|---|
WolfTip.ContextType |
EventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Equals to TipAdd.
GroupID
ID of the group where the message is in.
Declaration
[JsonProperty("groupId")]
public uint GroupID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MessageAuthorID
Author of the message.
Declaration
[JsonProperty("subscriberId", DefaultValueHandling = DefaultValueHandling.Ignore)]
public uint MessageAuthorID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MessageID
ID of message to tip.
Declaration
[JsonProperty("id")]
public WolfTimestamp MessageID { get; }
Property Value
Type | Description |
---|---|
WolfTimestamp |
TipperID
The person who tipped.
Declaration
[JsonProperty("sourceSubscriberId", NullValueHandling = NullValueHandling.Ignore)]
public uint? TipperID { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Tips
List of tips.
Declaration
[JsonProperty("charmList")]
public IEnumerable<WolfTip> Tips { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<WolfTip> |
Version
Version of the tip. (?)
Declaration
[JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
public int? Version { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |