Source:
private static String endpointNameForOperation(PNOperationType type) { String endpoint; switch (type) { case PNPublishOperation: endpoint = "pub"; break; case PNHistoryOperation: case PNFetchMessagesOperation: case PNDeleteMessagesOperation: endpoint = "hist"; break; case PNUnsubscribeOperation: case PNWhereNowOperation: case PNHereNowOperation: case PNHeartbeatOperation: case PNSetStateOperation: case PNGetState: endpoint = "pres"; break; case PNAddChannelsToGroupOperation: case PNRemoveChannelsFromGroupOperation: case PNChannelGroupsOperation: case PNRemoveGroupOperation: case PNChannelsForGroupOperation: endpoint = "cg"; break; case PNPushNotificationEnabledChannelsOperation: case PNAddPushNotificationsOnChannelsOperation: case PNRemovePushNotificationsFromChannelsOperation: case PNRemoveAllPushNotificationsOperation: endpoint = "push"; break; case PNAccessManagerAudit: case PNAccessManagerGrant: endpoint = "pam"; break; case PNMessageCountOperation: endpoint = "mc"; break; case PNSignalOperation: endpoint = "sig"; break; case PNCreateUserOperation: case PNGetUserOperation: case PNGetUsersOperation: case PNUpdateUserOperation: case PNDeleteUserOperation: endpoint = "obj"; break; case PNCreateSpaceOperation: case PNGetSpaceOperation: case PNGetSpacesOperation: case PNUpdateSpaceOperation: case PNDeleteSpaceOperation: endpoint = "obj"; break; case PNGetMembers: case PNManageMembers: endpoint = "obj"; break; case PNGetMemberships: case PNManageMemberships: endpoint = "obj"; break; case PNAccessManagerGranToken: endpoint = "pamv3"; break; default: endpoint = "time"; break; } return endpoint; }

Target:
private static String endpointNameForOperation(PNOperationType type) { String endpoint; switch (type) { case PNPublishOperation: endpoint = "pub"; break; case PNHistoryOperation: case PNFetchMessagesOperation: case PNDeleteMessagesOperation: endpoint = "hist"; break; case PNUnsubscribeOperation: case PNWhereNowOperation: case PNHereNowOperation: case PNHeartbeatOperation: case PNSetStateOperation: case PNGetState: endpoint = "pres"; break; case PNAddChannelsToGroupOperation: case PNRemoveChannelsFromGroupOperation: case PNChannelGroupsOperation: case PNRemoveGroupOperation: case PNChannelsForGroupOperation: endpoint = "cg"; break; case PNPushNotificationEnabledChannelsOperation: case PNAddPushNotificationsOnChannelsOperation: case PNRemovePushNotificationsFromChannelsOperation: case PNRemoveAllPushNotificationsOperation: endpoint = "push"; break; case PNAccessManagerAudit: case PNAccessManagerGrant: endpoint = "pam"; break; case PNMessageCountOperation: endpoint = "mc"; break; case PNSignalOperation: endpoint = "sig"; break; case PNCreateUserOperation: case PNGetUserOperation: case PNGetUsersOperation: case PNUpdateUserOperation: case PNDeleteUserOperation: endpoint = "obj"; break; case PNCreateSpaceOperation: case PNGetSpaceOperation: case PNGetSpacesOperation: case PNUpdateSpaceOperation: case PNDeleteSpaceOperation: endpoint = "obj"; break; case PNGetMembers: case PNManageMembers: endpoint = "obj"; break; case PNGetMemberships: case PNManageMemberships: endpoint = "obj"; break; case PNAccessManagerGrantToken: endpoint = "pamv3"; break; default: endpoint = "time"; break; } return endpoint; }