Example #1
0
 public static string GetDescription(this PNObjectsEventType @this)
 {
     if (@this.Equals(PNObjectsEventType.PNObjectsUUIDEvent))
     {
         return("uuid");
     }
     else if (@this.Equals(PNObjectsEventType.PNObjectsChannelEvent))
     {
         return("channel");
     }
     else if (@this.Equals(PNObjectsEventType.PNObjectsMembershipEvent))
     {
         return("membership");
     }
     else
     {
         return("none");
     }
 }
Example #2
0
 public static string GetDescription(this PNObjectsEventType @this)
 {
     if (@this.Equals(PNObjectsEventType.PNObjectsUserEvent))
     {
         return("user");
     }
     else if (@this.Equals(PNObjectsEventType.PNObjectsSpaceEvent))
     {
         return("space");
     }
     else if (@this.Equals(PNObjectsEventType.PNObjectsMembershipEvent))
     {
         return("membership");
     }
     else
     {
         return("none");
     }
 }