Exemple #1
0
 internal RosterItem(S22.Xmpp.Jid jid, string name, S22.Xmpp.Im.SubscriptionState state, bool pending, IEnumerable <string> groups)
 {
     this.groups = new HashSet <string>();
     jid.ThrowIfNull <S22.Xmpp.Jid>("jid");
     this.Jid  = jid;
     this.Name = name;
     if (groups != null)
     {
         foreach (string str in groups)
         {
             if (!string.IsNullOrEmpty(str))
             {
                 this.groups.Add(str);
             }
         }
     }
     this.SubscriptionState = state;
     this.Pending           = pending;
 }
 public SubscriptionPrivacyRule(S22.Xmpp.Im.SubscriptionState state, bool allow, uint order, PrivacyGranularity granularity = 0) : base(allow, order, granularity)
 {
     this.SubscriptionState = state;
 }