/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="V4MessageSuppressed" /> class. /// </summary> /// <param name="MessageId">MessageId.</param> /// <param name="Stream">the stream holding the suppressed message.</param> public V4MessageSuppressed(string MessageId = default(string), V4Stream Stream = default(V4Stream)) { this.MessageId = MessageId; this.Stream = Stream; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="V4RoomCreated" /> class. /// </summary> /// <param name="Stream">Stream.</param> /// <param name="RoomProperties">RoomProperties.</param> public V4RoomCreated(V4Stream Stream = default(V4Stream), V4RoomProperties RoomProperties = default(V4RoomProperties)) { this.Stream = Stream; this.RoomProperties = RoomProperties; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="V4RoomDeactivated" /> class. /// </summary> /// <param name="Stream">Stream.</param> public V4RoomDeactivated(V4Stream Stream = default(V4Stream)) { this.Stream = Stream; }
/// <summary> /// Initializes a new instance of the <see cref="V4InstantMessageCreated" /> class. /// </summary> /// <param name="Stream">Stream.</param> public V4InstantMessageCreated(V4Stream Stream = default(V4Stream)) { this.Stream = Stream; }
/// <summary> /// Initializes a new instance of the <see cref="V4RoomUpdated" /> class. /// </summary> /// <param name="Stream">Stream.</param> /// <param name="NewRoomProperties">NewRoomProperties.</param> public V4RoomUpdated(V4Stream Stream = default(V4Stream), V4RoomProperties NewRoomProperties = default(V4RoomProperties)) { this.Stream = Stream; this.NewRoomProperties = NewRoomProperties; }