Esempio n. 1
0
 public Recipient(TCRowMatrixData row)
 {
     foreach (var exProp in row)
     {
         switch (exProp.ID)
         {
             case 0x0c15:
                 this.Type = (RecipientType)BitConverter.ToUInt32(exProp.Data, 0);
                 break;
             case 0x0e0f:
                 this.Responsibility = exProp.Data[0] == 0x01;
                 break;
             case 0x0ff9:
                 this.Tag = exProp.Data;
                 break;
             case 0x0ffe:
                 this.ObjType = (PSTEnums.ObjectType)BitConverter.ToUInt32(exProp.Data, 0);
                 break;
             case 0x0fff:
                 this.EntryID = new EntryID(exProp.Data);
                 break;
             case 0x3001:
                 this.DisplayName = Encoding.Unicode.GetString(exProp.Data);
                 break;
             case 0x3002:
                 this.EmailAddressType = Encoding.Unicode.GetString(exProp.Data);
                 break;
             case 0x3003:
                 this.EmailAddress = Encoding.Unicode.GetString(exProp.Data);
                 break;
             default:
                 break;
         }
     }
 }
Esempio n. 2
0
        public Recipient(TCRowMatrixData row)
        {
            foreach (var exProp in row)
            {
                var data = exProp.Data ?? new byte[0];
                switch (exProp.ID)
                {
                case MessageProperty.RecipientType:
                    Type = (RecipientType)BitConverter.ToUInt32(data, 0);
                    break;

                case MessageProperty.RecipientResponsibility:
                    Responsibility = data.Any() ? data[0] == 0x01 : false;
                    break;

                case MessageProperty.RecordKey:
                    Tag = data;
                    break;

                case MessageProperty.RecipientObjType:
                    ObjType = (PSTEnums.ObjectType)BitConverter.ToUInt32(data, 0);
                    break;

                case MessageProperty.RecipientEntryID:
                    EntryID = new EntryID(data);
                    break;

                case MessageProperty.DisplayName:
                    DisplayName = Encoding.Unicode.GetString(data);
                    break;

                case MessageProperty.AddressType:
                    EmailAddressType = Encoding.Unicode.GetString(data);
                    break;

                case MessageProperty.AddressName:
                    EmailAddress = Encoding.Unicode.GetString(data);
                    break;

                default:
                    break;
                }
            }
        }
Esempio n. 3
0
        public Recipient(TCRowMatrixData row)
        {
            foreach (var exProp in row)
            {
                switch (exProp.ID)
                {
                case 0x0c15:
                    this.Type = (RecipientType)BitConverter.ToUInt32(exProp.Data, 0);
                    break;

                case 0x0e0f:
                    this.Responsibility = exProp.Data[0] == 0x01;
                    break;

                case 0x0ff9:
                    this.Tag = exProp.Data;
                    break;

                case 0x0ffe:
                    this.ObjType = (PSTEnums.ObjectType)BitConverter.ToUInt32(exProp.Data, 0);
                    break;

                case 0x0fff:
                    this.EntryID = new EntryID(exProp.Data);
                    break;

                case 0x3001:
                    this.DisplayName = Encoding.Unicode.GetString(exProp.Data);
                    break;

                case 0x3002:
                    this.EmailAddressType = Encoding.Unicode.GetString(exProp.Data);
                    break;

                case 0x3003:
                    this.EmailAddress = Encoding.Unicode.GetString(exProp.Data);
                    break;

                default:
                    break;
                }
            }
        }