using System; namespace Sony.NP { // Token: 0x020000AB RID: 171 internal class Notifications { // Token: 0x06000382 RID: 898 RVA: 0x0000AD18 File Offset: 0x00009D18 internal static ResponseBase CreateNotificationResponse(FunctionTypes notificationType) { ResponseBase responseBase = null; switch (notificationType) { case FunctionTypes.NotificationRefreshRoom: responseBase = new Matching.RefreshRoomResponse(); break; case FunctionTypes.NotificationNewRoomMessage: responseBase = new Matching.NewRoomMessageResponse(); break; case FunctionTypes.NotificationDialogOpened: case FunctionTypes.NotificationDialogClosed: case FunctionTypes.NotificationAborted: responseBase = new Core.EmptyResponse(); break; case FunctionTypes.NotificationUserStateChange: responseBase = new NpUtils.UserStateChangeResponse(); break; case FunctionTypes.NotificationNetStateChange: responseBase = new NetworkUtils.NetStateChangeResponse(); break; case FunctionTypes.NotificationNewInGameMessage: responseBase = new Messaging.NewInGameMessageResponse(); break; case FunctionTypes.NotificationUpdateFriendsList: responseBase = new Friends.FriendListUpdateResponse(); break; case FunctionTypes.NotificationNewInvitation: responseBase = new Matching.InvitationReceivedResponse(); break; case FunctionTypes.NotificationNewGameDataMessage: responseBase = new Messaging.NewGameDataMessageResponse(); break; case FunctionTypes.NotificationUpdateFriendPresence: responseBase = new Presence.PresenceUpdateResponse(); break; case FunctionTypes.NotificationUpdateBlockedUsersList: responseBase = new Friends.BlocklistUpdateResponse(); break; case FunctionTypes.NotificationSessionInvitationEvent: responseBase = new Matching.SessionInvitationEventResponse(); break; case FunctionTypes.NotificationPlayTogetherHostEvent: responseBase = new Matching.PlayTogetherHostEventResponse(); break; case FunctionTypes.NotificationGameCustomDataEvent: responseBase = new Messaging.GameCustomDataEventResponse(); break; } return responseBase; } } }