Exemple #1
0
 public UMCallAnsweringRule(UMCallAnsweringRuleId identity) : base(new SimpleProviderPropertyBag())
 {
     if (identity == null)
     {
         throw new ArgumentNullException("identity");
     }
     this.propertyBag.SetField(SimpleProviderObjectSchema.Identity, identity);
 }
Exemple #2
0
 public UMCallAnsweringRuleIdParameter(UMCallAnsweringRuleId ruleId)
 {
     if (ruleId == null)
     {
         throw new ArgumentNullException("ruleId");
     }
     ((IIdentityParameter)this).Initialize(ruleId);
     this.rawInput = ruleId.ToString();
 }
Exemple #3
0
        public static Identity ToIdentity(this UMCallAnsweringRuleId id)
        {
            Guid ruleIdGuid = id.RuleIdGuid;

            if (id.MailboxOwnerId != null)
            {
                return(new Identity(id.RuleIdGuid.ToString(), id.RuleIdGuid.ToString()));
            }
            return(id.ToIdentity(id.RuleIdGuid.ToString()));
        }