Beispiel #1
0
        // Token: 0x0600093A RID: 2362 RVA: 0x0003688C File Offset: 0x00034A8C
        protected override string GetEmailAddress()
        {
            string result;

            if (ADABUtils.GetEmailAddress(this.recipient, out result))
            {
                return(result);
            }
            return(null);
        }
Beispiel #2
0
        // Token: 0x06000936 RID: 2358 RVA: 0x0003682C File Offset: 0x00034A2C
        protected override ABObjectId GetId()
        {
            ADABObjectId adabobjectId;

            if (this.id == null && ADABUtils.GetId(this.recipient, out adabobjectId))
            {
                this.id = adabobjectId;
            }
            return(this.id);
        }
Beispiel #3
0
        // Token: 0x0600094D RID: 2381 RVA: 0x00036B24 File Offset: 0x00034D24
        protected override Uri GetWebPage()
        {
            Uri result;

            if (!ADABUtils.GetWebPage(this.recipient, out result))
            {
                return(null);
            }
            return(result);
        }
Beispiel #4
0
 // Token: 0x06000958 RID: 2392 RVA: 0x00036C68 File Offset: 0x00034E68
 protected override ABObjectId GetOwnerId()
 {
     if (this.ownerId != null)
     {
         return(this.ownerId);
     }
     if (ADABUtils.GetOwnerId(this.recipient, out this.ownerId))
     {
         return(this.ownerId);
     }
     return(null);
 }
Beispiel #5
0
        protected override bool InternalTryGetValue(ABPropertyDefinition property, out object value)
        {
            ADPropertyDefinition adpropertyDefinition = ADABPropertyMapper.GetADPropertyDefinition(property);

            if (adpropertyDefinition != null)
            {
                return(this.rawEntry.TryGetValueWithoutDefault(adpropertyDefinition, out value));
            }
            ADABObjectId adabobjectId;

            if (property == ABObjectSchema.Id && ADABUtils.GetId(this.rawEntry, out adabobjectId))
            {
                value = adabobjectId;
                return(true);
            }
            string text;

            if (property == ABObjectSchema.EmailAddress && ADABUtils.GetEmailAddress(this.rawEntry, out text))
            {
                value = text;
                return(true);
            }
            object obj;

            if (property == ABObjectSchema.CanEmail && this.rawEntry.TryGetValueWithoutDefault(ADRecipientSchema.RecipientType, out obj))
            {
                value = ADABUtils.CanEmailRecipientType((RecipientType)obj);
                return(true);
            }
            if (property == ABGroupSchema.MembersCount)
            {
                value = null;
                return(true);
            }
            ADABObjectId adabobjectId2;

            if (property == ABGroupSchema.OwnerId && ADABUtils.GetOwnerId(this.rawEntry, out adabobjectId2))
            {
                value = adabobjectId2;
                return(true);
            }
            return(base.InternalTryGetValue(property, out value));
        }
Beispiel #6
0
 // Token: 0x06000953 RID: 2387 RVA: 0x00036BED File Offset: 0x00034DED
 protected override bool GetCanEmail()
 {
     return(ADABUtils.CanEmailRecipientType(this.recipient.RecipientType));
 }