public XmppService GetService(XmppServiceCategory category)
 {
     return this.Services
         .Where(s => s.IsOnCategory(XmppServiceCategory.Conference))
         .FirstOrDefault();
 }
 /// <summary>
 ///   Check if the item is on the given service category
 /// </summary>
 /// <param name = "category"></param>
 /// <returns></returns>
 public bool IsOnCategory(XmppServiceCategory category)
 {
     return (identities.Where(s => s.Category == XmppServiceCategory.Conference).Count() > 0);
 }
Exemple #3
0
 /// <summary>
 ///   Initializes a new instance of the <see cref = "XmppServiceIdentity" /> class.
 /// </summary>
 /// <param name = "name">Identity name</param>
 /// <param name = "category">Identity category</param>
 /// <param name = "type">Identity type</param>
 public XmppServiceIdentity(string name, XmppServiceCategory category, string type)
 {
     this.Name     = name;
     this.Category = category;
     this.Type     = type;
 }
Exemple #4
0
 /// <summary>
 ///   Check if the item is on the given service category
 /// </summary>
 /// <param name = "category"></param>
 /// <returns></returns>
 public bool IsOnCategory(XmppServiceCategory category)
 {
     return(identities.Where(s => s.Category == XmppServiceCategory.Conference).Count() > 0);
 }
 public XmppService GetService(XmppServiceCategory category)
 {
     return(Services
            .Where(s => s.IsOnCategory(XmppServiceCategory.Conference))
            .FirstOrDefault());
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XmppServiceIdentity"/> class.
 /// </summary>
 /// <param name="name">Identity name</param>
 /// <param name="category">Identity category</param>
 /// <param name="type">Identity type</param>
 public XmppServiceIdentity(string name, XmppServiceCategory category, string type)
 {
     this.name       = name;
     this.category   = category;
     this.type       = type;
 }