Class Message
Inheritance
System.Object
Message
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Goui
Assembly: Goui.dll
Syntax
Fields
|
Improve this Doc
View Source
Key
Declaration
[JsonProperty("k")]
public string Key
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MessageType
Declaration
[JsonProperty("m")]
public MessageType MessageType
Field Value
|
Improve this Doc
View Source
ResultId
Declaration
[JsonProperty("rid", NullValueHandling = NullValueHandling.Ignore)]
public string ResultId
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TargetId
Declaration
[JsonProperty("id")]
public string TargetId
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Value
Declaration
[JsonProperty("v", NullValueHandling = NullValueHandling.Ignore)]
public object Value
Field Value
Type |
Description |
System.Object |
|
Methods
|
Improve this Doc
View Source
Call(String, String, Object[])
Declaration
public static Message Call(string targetId, string method, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
targetId |
|
System.String |
method |
|
System.Object[] |
args |
|
Returns
|
Improve this Doc
View Source
Event(String, String, Object)
Declaration
public static Message Event(string targetId, string eventType, object value = null)
Parameters
Type |
Name |
Description |
System.String |
targetId |
|
System.String |
eventType |
|
System.Object |
value |
|
Returns
|
Improve this Doc
View Source
FromJson(String)
Declaration
public static Message FromJson(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
|
Improve this Doc
View Source
Set(String, String, Object)
Declaration
public static Message Set(string targetId, string property, object value)
Parameters
Type |
Name |
Description |
System.String |
targetId |
|
System.String |
property |
|
System.Object |
value |
|
Returns
|
Improve this Doc
View Source
ToJson()
Declaration
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
WriteJson(TextWriter)
Declaration
public void WriteJson(TextWriter w)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
w |
|