Ejemplo n.º 1
0
        private MessageInfoData GetNewFakeMessage(MessageInfoData pMessageInfoData)
        {
            ulong _messageID = MessageController.ReturnNewMessageID();

            pMessageInfoData._Content = "Message " + _messageID;
            pMessageInfoData._Date    = DateTime.Now;
            pMessageInfoData._ID      = _messageID;
            pMessageInfoData._MessageDirectionType = (MessageDirectionType)_randomizer.Next(1, 3);
            pMessageInfoData._MessageStateType     = MessageStateType.Seen;
            pMessageInfoData._MessageFormatType    = (MessageFormatType)0;
            return(pMessageInfoData);
        }
Ejemplo n.º 2
0
        private Message GetFakeReceivedMessage()
        {
            MessageInfoData data = new MessageInfoData
            {
                _Content = "Fake Received Message",
                _Date    = DateTime.Now,
                _ID      = MessageController.ReturnNewMessageID(),
                _MessageDirectionType = MessageDirectionType.Income,
                _MessageFormatType    = MessageFormatType.Text,
                _MessageStateType     = MessageStateType.Received
            };

            return(new Message(data));
        }