/// <summary> /// Initializes a new instance of the <see cref="VoicemailMessage" /> class. /// </summary> /// <param name="Conversation">The conversation that the voicemail message is associated with.</param> /// <param name="Read">Whether the voicemail message is marked as read.</param> /// <param name="CallerUser">Optionally the user that left the voicemail message if the caller was a known user.</param> /// <param name="Deleted">Whether the voicemail message has been marked as deleted.</param> /// <param name="Note">An optional note.</param> /// <param name="User">The user that the voicemail message belongs to or null which means the voicemail message belongs to a group or queue.</param> /// <param name="Group">The group that the voicemail message belongs to or null which means the voicemail message belongs to a user or queue.</param> /// <param name="Queue">The queue that the voicemail message belongs to or null which means the voicemail message belongs to a user or group.</param> /// <param name="CopiedFrom">Represents where this voicemail message was copied from.</param> /// <param name="CopiedTo">Represents where this voicemail has been copied to.</param> /// <param name="DeleteRetentionPolicy">The retention policy for this voicemail when deleted is set to true.</param> public VoicemailMessage(Conversation Conversation = null, bool?Read = null, User CallerUser = null, bool?Deleted = null, string Note = null, User User = null, Group Group = null, Queue Queue = null, VoicemailCopyRecord CopiedFrom = null, List <VoicemailCopyRecord> CopiedTo = null, VoicemailRetentionPolicy DeleteRetentionPolicy = null) { this.Conversation = Conversation; this.Read = Read; this.CallerUser = CallerUser; this.Deleted = Deleted; this.Note = Note; this.User = User; this.Group = Group; this.Queue = Queue; this.CopiedFrom = CopiedFrom; this.CopiedTo = CopiedTo; this.DeleteRetentionPolicy = DeleteRetentionPolicy; }
/// <summary> /// Initializes a new instance of the <see cref="VoicemailMessage" /> class. /// </summary> /// <param name="Read">Whether the voicemail message is marked as read.</param> /// <param name="Deleted">Whether the voicemail message has been marked as deleted.</param> /// <param name="Note">An optional note.</param> /// <param name="DeleteRetentionPolicy">The retention policy for this voicemail when deleted is set to true.</param> public VoicemailMessage(bool?Read = null, bool?Deleted = null, string Note = null, VoicemailRetentionPolicy DeleteRetentionPolicy = null) { this.Read = Read; this.Deleted = Deleted; this.Note = Note; this.DeleteRetentionPolicy = DeleteRetentionPolicy; }