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"); } }
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"); } }