コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V4UserJoinedRoom" /> class.
 /// </summary>
 /// <param name="Stream">Stream.</param>
 /// <param name="AffectedUser">User who was affected by the action (i.e. added to the room).</param>
 public V4UserJoinedRoom(V4Stream Stream = default(V4Stream), V4User AffectedUser = default(V4User))
 {
     this.Stream       = Stream;
     this.AffectedUser = AffectedUser;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V4RoomMemberPromotedToOwner" /> class.
 /// </summary>
 /// <param name="Stream">Stream.</param>
 /// <param name="AffectedUser">User who was affected by the action (i.e. promoted to owner).</param>
 public V4RoomMemberPromotedToOwner(V4Stream Stream = default(V4Stream), V4User AffectedUser = default(V4User))
 {
     this.Stream       = Stream;
     this.AffectedUser = AffectedUser;
 }
コード例 #3
0
ファイル: V4Initiator.cs プロジェクト: tchitnis/RestApiClient
 /// <summary>
 /// Initializes a new instance of the <see cref="V4Initiator" /> class.
 /// </summary>
 /// <param name="User">User.</param>
 public V4Initiator(V4User User = default(V4User))
 {
     this.User = User;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V4ConnectionRequested" /> class.
 /// </summary>
 /// <param name="ToUser">User who received the connection request.</param>
 public V4ConnectionRequested(V4User ToUser = default(V4User))
 {
     this.ToUser = ToUser;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V4RoomProperties" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Description">Description.</param>
 /// <param name="CreatorUser">CreatorUser.</param>
 /// <param name="CreatedDate">Timestamp.</param>
 /// <param name="External">External.</param>
 /// <param name="_Public">_Public.</param>
 /// <param name="CopyProtected">CopyProtected.</param>
 /// <param name="_ReadOnly">_ReadOnly.</param>
 /// <param name="Discoverable">Discoverable.</param>
 /// <param name="MembersCanInvite">MembersCanInvite.</param>
 public V4RoomProperties(string Name = default(string), string Description = default(string), V4User CreatorUser = default(V4User), long?CreatedDate = default(long?), bool?External = default(bool?), bool?_Public = default(bool?), bool?CopyProtected = default(bool?), bool?_ReadOnly = default(bool?), bool?Discoverable = default(bool?), bool?MembersCanInvite = default(bool?))
 {
     this.Name             = Name;
     this.Description      = Description;
     this.CreatorUser      = CreatorUser;
     this.CreatedDate      = CreatedDate;
     this.External         = External;
     this._Public          = _Public;
     this.CopyProtected    = CopyProtected;
     this._ReadOnly        = _ReadOnly;
     this.Discoverable     = Discoverable;
     this.MembersCanInvite = MembersCanInvite;
 }
コード例 #6
0
ファイル: V4Message.cs プロジェクト: tchitnis/RestApiClient
 /// <summary>
 /// Initializes a new instance of the <see cref="V4Message" /> class.
 /// </summary>
 /// <param name="MessageId">Id of the message.</param>
 /// <param name="Timestamp">Timestamp of the message in milliseconds since Jan 1 1970.</param>
 /// <param name="Message">Message content in MessageMLV2.</param>
 /// <param name="Data">Message data in EntityJSON.</param>
 /// <param name="Attachments">Message attachments.</param>
 /// <param name="User">Message author.</param>
 /// <param name="Stream">Message destination.</param>
 /// <param name="ExternalRecipients">Indicates if the message have external recipients.</param>
 public V4Message(string MessageId = default(string), long?Timestamp = default(long?), string Message = default(string), string Data = default(string), List <V4AttachmentInfo> Attachments = default(List <V4AttachmentInfo>), V4User User = default(V4User), V4Stream Stream = default(V4Stream), bool?ExternalRecipients = default(bool?))
 {
     this.MessageId          = MessageId;
     this.Timestamp          = Timestamp;
     this.Message            = Message;
     this.Data               = Data;
     this.Attachments        = Attachments;
     this.User               = User;
     this.Stream             = Stream;
     this.ExternalRecipients = ExternalRecipients;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V4ConnectionAccepted" /> class.
 /// </summary>
 /// <param name="FromUser">User who sent the connection request.</param>
 public V4ConnectionAccepted(V4User FromUser = default(V4User))
 {
     this.FromUser = FromUser;
 }