示例#1
0
 public ChannelMessage()
 {
     To = new SourceAddressCollection();
     CC = new SourceAddressCollection();
     BCC = new SourceAddressCollection();
     Metadata = new ChannelMetadata();
     Attachments = new List<ChannelAttachment>();
 }
示例#2
0
        public Message()
        {
            MessageKey = Guid.NewGuid().GetHash();
            Metadata = new ChannelMetadata();
            DateCreated = DateTime.Now;

            To = new SourceAddressCollection();
            CC = new SourceAddressCollection();
            BCC = new SourceAddressCollection();

            SourceChannelId = 0;
            TargetChannelId = 0;

            Documents = new AdvancedObservableCollection<Document>();
            LabelsList = new AdvancedObservableCollection<Label>();

            ReceiveLabels = new List<Label>();
            PostLabels = new List<Label>();
            ContentSynced = true;
        }