mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-09-11 04:48:57 -05:00
Update RMC method creation
This commit is contained in:
@@ -15,7 +15,7 @@ func (s *gRPCFriendsServer) SendUserNotificationWiiU(ctx context.Context, in *pb
|
||||
connectedUser := globals.ConnectedUsers[in.GetPid()]
|
||||
|
||||
if connectedUser != nil {
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent2
|
||||
|
||||
@@ -75,7 +75,7 @@ func NintendoCreateAccount(err error, packet nex.PacketInterface, callID uint32,
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = account_management.ProtocolID
|
||||
rmcResponse.MethodID = account_management.MethodNintendoCreateAccount
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -33,7 +33,7 @@ func AddFriendshipByPrincipalID(err error, packet nex.PacketInterface, callID ui
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodAddFriendByPrincipalID
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -29,7 +29,7 @@ func GetAllFriends(err error, packet nex.PacketInterface, callID uint32) (*nex.R
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodGetAllFriends
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -34,7 +34,7 @@ func GetFriendMii(err error, packet nex.PacketInterface, callID uint32, friends
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodGetFriendMii
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -35,7 +35,7 @@ func GetFriendPersistentInfo(err error, packet nex.PacketInterface, callID uint3
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodGetFriendPersistentInfo
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -33,7 +33,7 @@ func GetFriendPresence(err error, packet nex.PacketInterface, callID uint32, pid
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodGetFriendPresence
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -31,7 +31,7 @@ func RemoveFriendByPrincipalID(err error, packet nex.PacketInterface, callID uin
|
||||
|
||||
go notifications_3ds.SendUserWentOffline(client, pid)
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodRemoveFriendByPrincipalID
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -68,7 +68,7 @@ func SyncFriend(err error, packet nex.PacketInterface, callID uint32, lfc uint64
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodSyncFriend
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -24,7 +24,7 @@ func UpdateComment(err error, packet nex.PacketInterface, callID uint32, comment
|
||||
|
||||
go notifications_3ds.SendCommentUpdate(client, comment)
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdateComment
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -25,7 +25,7 @@ func UpdateFavoriteGameKey(err error, packet nex.PacketInterface, callID uint32,
|
||||
|
||||
go notifications_3ds.SendFavoriteUpdate(client, gameKey)
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdateFavoriteGameKey
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -25,7 +25,7 @@ func UpdateMii(err error, packet nex.PacketInterface, callID uint32, mii *friend
|
||||
|
||||
go notifications_3ds.SendMiiUpdateNotification(client)
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdateMii
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -33,7 +33,7 @@ func UpdatePreference(err error, packet nex.PacketInterface, callID uint32, show
|
||||
notifications_3ds.SendUserWentOfflineGlobally(client)
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdatePreference
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -42,7 +42,7 @@ func UpdatePresence(err error, packet nex.PacketInterface, callID uint32, presen
|
||||
|
||||
globals.ConnectedUsers[pid].Presence = currentPresence
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdatePresence
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -22,7 +22,7 @@ func UpdateProfile(err error, packet nex.PacketInterface, callID uint32, profile
|
||||
return nil, nex.Errors.FPD.Unknown
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_3ds.ProtocolID
|
||||
rmcResponse.MethodID = friends_3ds.MethodUpdateProfile
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -61,7 +61,7 @@ func AcceptFriendRequest(err error, packet nex.PacketInterface, callID uint32, i
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodAcceptFriendRequest
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -49,7 +49,7 @@ func AddBlacklist(err error, packet nex.PacketInterface, callID uint32, blacklis
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodAddBlackList
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -143,7 +143,7 @@ func AddFriendRequest(err error, packet nex.PacketInterface, callID uint32, pid
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodAddFriendRequest
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -33,7 +33,7 @@ func CancelFriendRequest(err error, packet nex.PacketInterface, callID uint32, i
|
||||
go notifications_wiiu.SendFriendshipRemoved(connectedUser.Client, client.PID())
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodCancelFriendRequest
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -18,7 +18,7 @@ func CheckSettingStatus(err error, packet nex.PacketInterface, callID uint32) (*
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodCheckSettingStatus
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -24,7 +24,7 @@ func DeleteFriendRequest(err error, packet nex.PacketInterface, callID uint32, i
|
||||
}
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodDeleteFriendRequest
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -15,7 +15,7 @@ func DeletePersistentNotification(err error, packet nex.PacketInterface, callID
|
||||
|
||||
// TODO - Do something here
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodDeletePersistentNotification
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -64,7 +64,7 @@ func DenyFriendRequest(err error, packet nex.PacketInterface, callID uint32, id
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodDenyFriendRequest
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -36,7 +36,7 @@ func GetBasicInfo(err error, packet nex.PacketInterface, callID uint32, pids []*
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodGetBasicInfo
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -42,7 +42,7 @@ func GetRequestBlockSettings(err error, packet nex.PacketInterface, callID uint3
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodGetRequestBlockSettings
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -22,7 +22,7 @@ func MarkFriendRequestsAsReceived(err error, packet nex.PacketInterface, callID
|
||||
}
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodMarkFriendRequestsAsReceived
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -26,7 +26,7 @@ func RemoveBlacklist(err error, packet nex.PacketInterface, callID uint32, block
|
||||
}
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodRemoveBlackList
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -32,7 +32,7 @@ func RemoveFriend(err error, packet nex.PacketInterface, callID uint32, pid *nex
|
||||
go notifications_wiiu.SendFriendshipRemoved(connectedUser.Client, pid)
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodRemoveFriend
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -255,7 +255,7 @@ func UpdateAndGetAllInformation(err error, packet nex.PacketInterface, callID ui
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodUpdateAndGetAllInformation
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -28,7 +28,7 @@ func UpdateComment(err error, packet nex.PacketInterface, callID uint32, comment
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodUpdateComment
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -22,7 +22,7 @@ func UpdatePreference(err error, packet nex.PacketInterface, callID uint32, prin
|
||||
return nil, nex.Errors.FPD.Unknown
|
||||
}
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodUpdatePreference
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -37,7 +37,7 @@ func UpdatePresence(err error, packet nex.PacketInterface, callID uint32, presen
|
||||
|
||||
notifications_wiiu.SendPresenceUpdate(presence)
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(nil)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, nil)
|
||||
rmcResponse.ProtocolID = friends_wiiu.ProtocolID
|
||||
rmcResponse.MethodID = friends_wiiu.MethodUpdatePresence
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -80,7 +80,7 @@ func RegisterEx(err error, packet nex.PacketInterface, callID uint32, stationUrl
|
||||
|
||||
rmcResponseBody := rmcResponseStream.Bytes()
|
||||
|
||||
rmcResponse := nex.NewRMCSuccess(rmcResponseBody)
|
||||
rmcResponse := nex.NewRMCSuccess(globals.SecureServer, rmcResponseBody)
|
||||
rmcResponse.ProtocolID = secure_connection.ProtocolID
|
||||
rmcResponse.MethodID = secure_connection.MethodRegisterEx
|
||||
rmcResponse.CallID = callID
|
||||
|
||||
@@ -24,7 +24,7 @@ func SendCommentUpdate(client *nex.PRUDPClient, comment string) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -22,7 +22,7 @@ func SendFavoriteUpdate(client *nex.PRUDPClient, gameKey *friends_3ds_types.Game
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -23,7 +23,7 @@ func SendFriendshipCompleted(client *nex.PRUDPClient, friendPID uint32, senderPI
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -23,7 +23,7 @@ func SendMiiUpdateNotification(client *nex.PRUDPClient) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -22,7 +22,7 @@ func SendPresenceUpdate(client *nex.PRUDPClient, presence *friends_3ds_types.Nin
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -34,7 +34,7 @@ func SendUserWentOffline(client *nex.PRUDPClient, pid *nex.PID) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -19,7 +19,7 @@ func SendFriendRequest(client *nex.PRUDPClient, friendRequestNotificationData *f
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent2
|
||||
|
||||
@@ -19,7 +19,7 @@ func SendFriendRequestAccepted(client *nex.PRUDPClient, friendInfo *friends_wiiu
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -20,7 +20,7 @@ func SendFriendshipRemoved(client *nex.PRUDPClient, senderPID *nex.PID) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
stream.WriteStructure(eventObject)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
@@ -23,7 +23,7 @@ func SendPresenceUpdate(presence *friends_wiiu_types.NintendoPresenceV2) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
eventObjectBytes := eventObject.Bytes(stream)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent2
|
||||
|
||||
@@ -40,7 +40,7 @@ func SendUserWentOffline(client *nex.PRUDPClient, pid *nex.PID) {
|
||||
stream := nex.NewStreamOut(globals.SecureServer)
|
||||
stream.WriteStructure(eventObject)
|
||||
|
||||
rmcRequest := nex.NewRMCRequest()
|
||||
rmcRequest := nex.NewRMCRequest(globals.SecureServer)
|
||||
rmcRequest.ProtocolID = nintendo_notifications.ProtocolID
|
||||
rmcRequest.CallID = 3810693103
|
||||
rmcRequest.MethodID = nintendo_notifications.MethodProcessNintendoNotificationEvent1
|
||||
|
||||
Reference in New Issue
Block a user