예제 #1
0
 public SMSG_MESSAGECHAT_Payload([NotNull] NetworkChatMessageHeader messageHeader, [NotNull] NetworkChatMessageFooter messageFooter, [NotNull] NetworkChatChannelMessageDetails channelMessageDetails)
     : this()
 {
     MessageHeader         = messageHeader ?? throw new ArgumentNullException(nameof(messageHeader));
     ChannelMessageDetails = channelMessageDetails ?? throw new ArgumentNullException(nameof(channelMessageDetails));
     MessageFooter         = messageFooter ?? throw new ArgumentNullException(nameof(messageFooter));
 }
예제 #2
0
 public SMSG_MESSAGECHAT_Payload([NotNull] NetworkChatMessageHeader messageHeader, [NotNull] NetworkChatMessageFooter messageFooter, [NotNull] NetworkChatDefaultMessageDetails defaultMessageDetails)
     : this()
 {
     MessageHeader         = messageHeader ?? throw new ArgumentNullException(nameof(messageHeader));
     DefaultMessageDetails = defaultMessageDetails;
     MessageFooter         = messageFooter ?? throw new ArgumentNullException(nameof(messageFooter));
 }
예제 #3
0
        //TODO: Optional message data if it was a guild achievement

        //TODO: Parameter validation
        /// <inheritdoc />
        public SMSG_MESSAGECHAT_Payload([NotNull] NetworkChatMessageHeader messageHeader, [NotNull] NetworkChatMessageFooter messageFooter, [NotNull] NetworkChatWhisperMessageDetails whisperMessageDetails)
        {
            MessageHeader         = messageHeader ?? throw new ArgumentNullException(nameof(messageHeader));
            WhisperMessageDetails = whisperMessageDetails ?? throw new ArgumentNullException(nameof(whisperMessageDetails));
            MessageFooter         = messageFooter ?? throw new ArgumentNullException(nameof(messageFooter));
        }