Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1585 lines
70 KiB

  1. // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
  2. namespace Oculus.Platform
  3. {
  4. using UnityEngine;
  5. using System;
  6. using System.Collections;
  7. using System.Collections.Generic;
  8. using Oculus.Platform.Models;
  9. public abstract class Message<T> : Message
  10. {
  11. public new delegate void Callback(Message<T> message);
  12. public Message(IntPtr c_message) : base(c_message) {
  13. if (!IsError)
  14. {
  15. data = GetDataFromMessage(c_message);
  16. }
  17. }
  18. public T Data { get { return data; } }
  19. protected abstract T GetDataFromMessage(IntPtr c_message);
  20. private T data;
  21. }
  22. public class Message
  23. {
  24. public delegate void Callback(Message message);
  25. public Message(IntPtr c_message)
  26. {
  27. type = (MessageType)CAPI.ovr_Message_GetType(c_message);
  28. var isError = CAPI.ovr_Message_IsError(c_message);
  29. requestID = CAPI.ovr_Message_GetRequestID(c_message);
  30. if (isError)
  31. {
  32. IntPtr errorHandle = CAPI.ovr_Message_GetError(c_message);
  33. error = new Error(
  34. CAPI.ovr_Error_GetCode(errorHandle),
  35. CAPI.ovr_Error_GetMessage(errorHandle),
  36. CAPI.ovr_Error_GetHttpCode(errorHandle));
  37. }
  38. else if (Core.LogMessages)
  39. {
  40. var message = CAPI.ovr_Message_GetString(c_message);
  41. if (message != null)
  42. {
  43. Debug.Log(message);
  44. }
  45. else
  46. {
  47. Debug.Log(string.Format("null message string {0}", c_message));
  48. }
  49. }
  50. }
  51. ~Message()
  52. {
  53. }
  54. // Keep this enum in sync with ovrMessageType in OVR_Platform.h
  55. public enum MessageType : uint
  56. { //TODO - rename this to type; it's already in Message class
  57. Unknown,
  58. Achievements_AddCount = 0x03E76231,
  59. Achievements_AddFields = 0x14AA2129,
  60. Achievements_GetAllDefinitions = 0x03D3458D,
  61. Achievements_GetAllProgress = 0x4F9FDE1D,
  62. Achievements_GetDefinitionsByName = 0x629101BC,
  63. Achievements_GetNextAchievementDefinitionArrayPage = 0x2A7DD255,
  64. Achievements_GetNextAchievementProgressArrayPage = 0x2F42E727,
  65. Achievements_GetProgressByName = 0x152663B1,
  66. Achievements_Unlock = 0x593CCBDD,
  67. ApplicationLifecycle_GetRegisteredPIDs = 0x04E5CF62,
  68. ApplicationLifecycle_GetSessionKey = 0x3AAF591D,
  69. ApplicationLifecycle_RegisterSessionKey = 0x4DB6AFF8,
  70. Application_GetVersion = 0x68670A0E,
  71. Application_LaunchOtherApp = 0x54E2D1F8,
  72. AssetFile_Delete = 0x6D5D7886,
  73. AssetFile_DeleteById = 0x5AE8CD52,
  74. AssetFile_DeleteByName = 0x420AC1CF,
  75. AssetFile_Download = 0x11449FC5,
  76. AssetFile_DownloadById = 0x2D008992,
  77. AssetFile_DownloadByName = 0x6336CEFA,
  78. AssetFile_DownloadCancel = 0x080AD3C7,
  79. AssetFile_DownloadCancelById = 0x51659514,
  80. AssetFile_DownloadCancelByName = 0x446AECFA,
  81. AssetFile_GetList = 0x4AFC6F74,
  82. AssetFile_Status = 0x02D32F60,
  83. AssetFile_StatusById = 0x5D955D38,
  84. AssetFile_StatusByName = 0x41CFDA50,
  85. CloudStorage2_GetUserDirectoryPath = 0x76A42EEE,
  86. CloudStorage_Delete = 0x28DA456D,
  87. CloudStorage_GetNextCloudStorageMetadataArrayPage = 0x5C07A2EF,
  88. CloudStorage_Load = 0x40846B41,
  89. CloudStorage_LoadBucketMetadata = 0x7327A50D,
  90. CloudStorage_LoadConflictMetadata = 0x445A52F2,
  91. CloudStorage_LoadHandle = 0x326ADA36,
  92. CloudStorage_LoadMetadata = 0x03E6A292,
  93. CloudStorage_ResolveKeepLocal = 0x30588D05,
  94. CloudStorage_ResolveKeepRemote = 0x7525A306,
  95. CloudStorage_Save = 0x4BBB5C2E,
  96. Entitlement_GetIsViewerEntitled = 0x186B58B1,
  97. IAP_ConsumePurchase = 0x1FBB72D9,
  98. IAP_GetNextProductArrayPage = 0x1BD94AAF,
  99. IAP_GetNextPurchaseArrayPage = 0x47570A95,
  100. IAP_GetProductsBySKU = 0x7E9ACAF5,
  101. IAP_GetViewerPurchases = 0x3A0F8419,
  102. IAP_GetViewerPurchasesDurableCache = 0x63599E2B,
  103. IAP_LaunchCheckoutFlow = 0x3F9B0D0D,
  104. LanguagePack_GetCurrent = 0x1F90F0D5,
  105. LanguagePack_SetCurrent = 0x5B4FBBE0,
  106. Leaderboard_GetEntries = 0x5DB3474C,
  107. Leaderboard_GetEntriesAfterRank = 0x18378BEF,
  108. Leaderboard_GetNextEntries = 0x4E207CD9,
  109. Leaderboard_GetPreviousEntries = 0x4901DAC0,
  110. Leaderboard_WriteEntry = 0x117FC8FE,
  111. Livestreaming_GetStatus = 0x489A6995,
  112. Livestreaming_PauseStream = 0x369C7683,
  113. Livestreaming_ResumeStream = 0x22526D8F,
  114. Matchmaking_Browse = 0x1E6532C8,
  115. Matchmaking_Browse2 = 0x66429E5B,
  116. Matchmaking_Cancel = 0x206849AF,
  117. Matchmaking_Cancel2 = 0x10FE8DD4,
  118. Matchmaking_CreateAndEnqueueRoom = 0x604C5DC8,
  119. Matchmaking_CreateAndEnqueueRoom2 = 0x295BEADB,
  120. Matchmaking_CreateRoom = 0x033B132A,
  121. Matchmaking_CreateRoom2 = 0x496DA384,
  122. Matchmaking_Enqueue = 0x40C16C71,
  123. Matchmaking_Enqueue2 = 0x121212B5,
  124. Matchmaking_EnqueueRoom = 0x708A4064,
  125. Matchmaking_EnqueueRoom2 = 0x5528DBA4,
  126. Matchmaking_GetAdminSnapshot = 0x3C215F94,
  127. Matchmaking_GetStats = 0x42FC9438,
  128. Matchmaking_JoinRoom = 0x4D32D7FD,
  129. Matchmaking_ReportResultInsecure = 0x1A36D18D,
  130. Matchmaking_StartMatch = 0x44D40945,
  131. Media_ShareToFacebook = 0x00E38AEF,
  132. Notification_GetNextRoomInviteNotificationArrayPage = 0x0621FB77,
  133. Notification_GetRoomInvites = 0x6F916B92,
  134. Notification_MarkAsRead = 0x717259E3,
  135. Party_GetCurrent = 0x47933760,
  136. RichPresence_Clear = 0x57B752B3,
  137. RichPresence_GetDestinations = 0x586F2D14,
  138. RichPresence_GetNextDestinationArrayPage = 0x67367F45,
  139. RichPresence_Set = 0x3C147509,
  140. Room_CreateAndJoinPrivate = 0x75D6E377,
  141. Room_CreateAndJoinPrivate2 = 0x5A3A6243,
  142. Room_Get = 0x659A8FB8,
  143. Room_GetCurrent = 0x09A6A504,
  144. Room_GetCurrentForUser = 0x0E0017E5,
  145. Room_GetInvitableUsers = 0x1E325792,
  146. Room_GetInvitableUsers2 = 0x4F53E8B0,
  147. Room_GetModeratedRooms = 0x0983FD77,
  148. Room_GetNextRoomArrayPage = 0x4E8379C6,
  149. Room_InviteUser = 0x4129EC13,
  150. Room_Join = 0x16CA8F09,
  151. Room_Join2 = 0x4DAB1C42,
  152. Room_KickUser = 0x49835736,
  153. Room_LaunchInvitableUserFlow = 0x323FE273,
  154. Room_Leave = 0x72382475,
  155. Room_SetDescription = 0x3044852F,
  156. Room_UpdateDataStore = 0x026E4028,
  157. Room_UpdateMembershipLockStatus = 0x370BB7AC,
  158. Room_UpdateOwner = 0x32B63D1D,
  159. Room_UpdatePrivateRoomJoinPolicy = 0x1141029B,
  160. User_Get = 0x6BCF9E47,
  161. User_GetAccessToken = 0x06A85ABE,
  162. User_GetLoggedInUser = 0x436F345D,
  163. User_GetLoggedInUserFriends = 0x587C2A8D,
  164. User_GetLoggedInUserFriendsAndRooms = 0x5E870B87,
  165. User_GetLoggedInUserRecentlyMetUsersAndRooms = 0x295FBA30,
  166. User_GetNextUserAndRoomArrayPage = 0x7FBDD2DF,
  167. User_GetNextUserArrayPage = 0x267CF743,
  168. User_GetOrgScopedID = 0x18F0B01B,
  169. User_GetSdkAccounts = 0x67526A83,
  170. User_GetUserProof = 0x22810483,
  171. User_LaunchFriendRequestFlow = 0x0904B598,
  172. User_LaunchProfile = 0x0A397297,
  173. Voip_SetSystemVoipSuppressed = 0x453FC9AA,
  174. /// Sent when a launch intent is received (for both cold and warm starts). The
  175. /// payload is the type of the intent. ApplicationLifecycle.GetLaunchDetails()
  176. /// should be called to get the other details.
  177. Notification_ApplicationLifecycle_LaunchIntentChanged = 0x04B34CA3,
  178. /// Sent to indicate download progress for asset files.
  179. Notification_AssetFile_DownloadUpdate = 0x2FDD0CCD,
  180. /// Result of a leader picking an application for CAL launch.
  181. Notification_Cal_FinalizeApplication = 0x750C5099,
  182. /// Application that the group leader has proposed for a CAL launch.
  183. Notification_Cal_ProposeApplication = 0x2E7451F5,
  184. /// Sent to indicate that more data has been read or an error occured.
  185. Notification_HTTP_Transfer = 0x7DD46E2F,
  186. /// Indicates that the livestreaming session has been updated. You can use this
  187. /// information to throttle your game performance or increase CPU/GPU
  188. /// performance. Use Message.GetLivestreamingStatus() to extract the updated
  189. /// livestreaming status.
  190. Notification_Livestreaming_StatusChange = 0x2247596E,
  191. /// Indicates that a match has been found, for example after calling
  192. /// Matchmaking.Enqueue(). Use Message.GetRoom() to extract the matchmaking
  193. /// room.
  194. Notification_Matchmaking_MatchFound = 0x0BC3FCD7,
  195. /// Sent when the status of a connection has changed.
  196. Notification_NetSync_ConnectionStatusChanged = 0x073484CA,
  197. /// Sent when the list of known connected sessions has changed. Contains the
  198. /// new list of sessions.
  199. Notification_NetSync_SessionsChanged = 0x387E7F36,
  200. /// Indicates that a connection has been established or there's been an error.
  201. /// Use NetworkingPeer.GetState() to get the result; as above,
  202. /// NetworkingPeer.GetID() returns the ID of the peer this message is for.
  203. Notification_Networking_ConnectionStateChange = 0x5E02D49A,
  204. /// Indicates that another user is attempting to establish a P2P connection
  205. /// with us. Use NetworkingPeer.GetID() to extract the ID of the peer.
  206. Notification_Networking_PeerConnectRequest = 0x4D31E2CF,
  207. /// Generated in response to Net.Ping(). Either contains ping time in
  208. /// microseconds or indicates that there was a timeout.
  209. Notification_Networking_PingResult = 0x51153012,
  210. /// Indicates that party has been updated
  211. Notification_Party_PartyUpdate = 0x1D118AB2,
  212. /// Indicates that the user has accepted an invitation, for example in Oculus
  213. /// Home. Use Message.GetString() to extract the ID of the room that the user
  214. /// has been inivted to as a string. Then call ovrID_FromString() to parse it
  215. /// into an ovrID.
  216. ///
  217. /// Note that you must call Rooms.Join() if you want to actually join the room.
  218. Notification_Room_InviteAccepted = 0x6D1071B1,
  219. /// Handle this to notify the user when they've received an invitation to join
  220. /// a room in your game. You can use this in lieu of, or in addition to,
  221. /// polling for room invitations via
  222. /// Notifications.GetRoomInviteNotifications().
  223. Notification_Room_InviteReceived = 0x6A499D54,
  224. /// Indicates that the current room has been updated. Use Message.GetRoom() to
  225. /// extract the updated room.
  226. Notification_Room_RoomUpdate = 0x60EC3C2F,
  227. /// Sent when another user is attempting to establish a VoIP connection. Use
  228. /// Message.GetNetworkingPeer() to extract information about the user, and
  229. /// Voip.Accept() to accept the connection.
  230. Notification_Voip_ConnectRequest = 0x36243816,
  231. /// Sent to indicate that the state of the VoIP connection changed. Use
  232. /// Message.GetNetworkingPeer() and NetworkingPeer.GetState() to extract the
  233. /// current state.
  234. Notification_Voip_StateChange = 0x34EFA660,
  235. /// Sent to indicate that some part of the overall state of SystemVoip has
  236. /// changed. Use Message.GetSystemVoipState() and the properties of
  237. /// SystemVoipState to extract the state that triggered the notification.
  238. ///
  239. /// Note that the state may have changed further since the notification was
  240. /// generated, and that you may call the `GetSystemVoip...()` family of
  241. /// functions at any time to get the current state directly.
  242. Notification_Voip_SystemVoipState = 0x58D254A5,
  243. Platform_InitializeWithAccessToken = 0x35692F2B,
  244. Platform_InitializeStandaloneOculus = 0x51F8CE0C,
  245. Platform_InitializeAndroidAsynchronous = 0x1AD307B4,
  246. Platform_InitializeWindowsAsynchronous = 0x6DA7BA8F,
  247. };
  248. public MessageType Type { get { return type; } }
  249. public bool IsError { get { return error != null; } }
  250. public ulong RequestID { get { return requestID; } }
  251. private MessageType type;
  252. private ulong requestID;
  253. private Error error;
  254. public virtual Error GetError() { return error; }
  255. public virtual PingResult GetPingResult() { return null; }
  256. public virtual NetworkingPeer GetNetworkingPeer() { return null; }
  257. public virtual HttpTransferUpdate GetHttpTransferUpdate() { return null; }
  258. public virtual PlatformInitialize GetPlatformInitialize() { return null; }
  259. public virtual AbuseReportRecording GetAbuseReportRecording() { return null; }
  260. public virtual AchievementDefinitionList GetAchievementDefinitions() { return null; }
  261. public virtual AchievementProgressList GetAchievementProgressList() { return null; }
  262. public virtual AchievementUpdate GetAchievementUpdate() { return null; }
  263. public virtual ApplicationVersion GetApplicationVersion() { return null; }
  264. public virtual AssetDetails GetAssetDetails() { return null; }
  265. public virtual AssetDetailsList GetAssetDetailsList() { return null; }
  266. public virtual AssetFileDeleteResult GetAssetFileDeleteResult() { return null; }
  267. public virtual AssetFileDownloadCancelResult GetAssetFileDownloadCancelResult() { return null; }
  268. public virtual AssetFileDownloadResult GetAssetFileDownloadResult() { return null; }
  269. public virtual AssetFileDownloadUpdate GetAssetFileDownloadUpdate() { return null; }
  270. public virtual CalApplicationFinalized GetCalApplicationFinalized() { return null; }
  271. public virtual CalApplicationProposed GetCalApplicationProposed() { return null; }
  272. public virtual CalApplicationSuggestionList GetCalApplicationSuggestionList() { return null; }
  273. public virtual CloudStorageConflictMetadata GetCloudStorageConflictMetadata() { return null; }
  274. public virtual CloudStorageData GetCloudStorageData() { return null; }
  275. public virtual CloudStorageMetadata GetCloudStorageMetadata() { return null; }
  276. public virtual CloudStorageMetadataList GetCloudStorageMetadataList() { return null; }
  277. public virtual CloudStorageUpdateResponse GetCloudStorageUpdateResponse() { return null; }
  278. public virtual DestinationList GetDestinationList() { return null; }
  279. public virtual InstalledApplicationList GetInstalledApplicationList() { return null; }
  280. public virtual LaunchBlockFlowResult GetLaunchBlockFlowResult() { return null; }
  281. public virtual LaunchFriendRequestFlowResult GetLaunchFriendRequestFlowResult() { return null; }
  282. public virtual LaunchReportFlowResult GetLaunchReportFlowResult() { return null; }
  283. public virtual LaunchUnblockFlowResult GetLaunchUnblockFlowResult() { return null; }
  284. public virtual bool GetLeaderboardDidUpdate() { return false; }
  285. public virtual LeaderboardEntryList GetLeaderboardEntryList() { return null; }
  286. public virtual LinkedAccountList GetLinkedAccountList() { return null; }
  287. public virtual LivestreamingApplicationStatus GetLivestreamingApplicationStatus() { return null; }
  288. public virtual LivestreamingStartResult GetLivestreamingStartResult() { return null; }
  289. public virtual LivestreamingStatus GetLivestreamingStatus() { return null; }
  290. public virtual LivestreamingVideoStats GetLivestreamingVideoStats() { return null; }
  291. public virtual MatchmakingAdminSnapshot GetMatchmakingAdminSnapshot() { return null; }
  292. public virtual MatchmakingBrowseResult GetMatchmakingBrowseResult() { return null; }
  293. public virtual MatchmakingEnqueueResult GetMatchmakingEnqueueResult() { return null; }
  294. public virtual MatchmakingEnqueueResultAndRoom GetMatchmakingEnqueueResultAndRoom() { return null; }
  295. public virtual MatchmakingStats GetMatchmakingStats() { return null; }
  296. public virtual NetSyncConnection GetNetSyncConnection() { return null; }
  297. public virtual NetSyncSessionList GetNetSyncSessionList() { return null; }
  298. public virtual NetSyncSessionsChangedNotification GetNetSyncSessionsChangedNotification() { return null; }
  299. public virtual NetSyncSetSessionPropertyResult GetNetSyncSetSessionPropertyResult() { return null; }
  300. public virtual NetSyncVoipAttenuationValueList GetNetSyncVoipAttenuationValueList() { return null; }
  301. public virtual OrgScopedID GetOrgScopedID() { return null; }
  302. public virtual Party GetParty() { return null; }
  303. public virtual PartyID GetPartyID() { return null; }
  304. public virtual PartyUpdateNotification GetPartyUpdateNotification() { return null; }
  305. public virtual PidList GetPidList() { return null; }
  306. public virtual ProductList GetProductList() { return null; }
  307. public virtual Purchase GetPurchase() { return null; }
  308. public virtual PurchaseList GetPurchaseList() { return null; }
  309. public virtual Room GetRoom() { return null; }
  310. public virtual RoomInviteNotification GetRoomInviteNotification() { return null; }
  311. public virtual RoomInviteNotificationList GetRoomInviteNotificationList() { return null; }
  312. public virtual RoomList GetRoomList() { return null; }
  313. public virtual SdkAccountList GetSdkAccountList() { return null; }
  314. public virtual ShareMediaResult GetShareMediaResult() { return null; }
  315. public virtual string GetString() { return null; }
  316. public virtual SystemPermission GetSystemPermission() { return null; }
  317. public virtual SystemVoipState GetSystemVoipState() { return null; }
  318. public virtual User GetUser() { return null; }
  319. public virtual UserAndRoomList GetUserAndRoomList() { return null; }
  320. public virtual UserList GetUserList() { return null; }
  321. public virtual UserProof GetUserProof() { return null; }
  322. public virtual UserReportID GetUserReportID() { return null; }
  323. internal static Message ParseMessageHandle(IntPtr messageHandle)
  324. {
  325. if (messageHandle.ToInt64() == 0)
  326. {
  327. return null;
  328. }
  329. Message message = null;
  330. Message.MessageType message_type = (Message.MessageType)CAPI.ovr_Message_GetType(messageHandle);
  331. switch(message_type) {
  332. // OVR_MESSAGE_TYPE_START
  333. case Message.MessageType.Achievements_GetAllDefinitions:
  334. case Message.MessageType.Achievements_GetDefinitionsByName:
  335. case Message.MessageType.Achievements_GetNextAchievementDefinitionArrayPage:
  336. message = new MessageWithAchievementDefinitions(messageHandle);
  337. break;
  338. case Message.MessageType.Achievements_GetAllProgress:
  339. case Message.MessageType.Achievements_GetNextAchievementProgressArrayPage:
  340. case Message.MessageType.Achievements_GetProgressByName:
  341. message = new MessageWithAchievementProgressList(messageHandle);
  342. break;
  343. case Message.MessageType.Achievements_AddCount:
  344. case Message.MessageType.Achievements_AddFields:
  345. case Message.MessageType.Achievements_Unlock:
  346. message = new MessageWithAchievementUpdate(messageHandle);
  347. break;
  348. case Message.MessageType.Application_GetVersion:
  349. message = new MessageWithApplicationVersion(messageHandle);
  350. break;
  351. case Message.MessageType.AssetFile_Status:
  352. case Message.MessageType.AssetFile_StatusById:
  353. case Message.MessageType.AssetFile_StatusByName:
  354. case Message.MessageType.LanguagePack_GetCurrent:
  355. message = new MessageWithAssetDetails(messageHandle);
  356. break;
  357. case Message.MessageType.AssetFile_GetList:
  358. message = new MessageWithAssetDetailsList(messageHandle);
  359. break;
  360. case Message.MessageType.AssetFile_Delete:
  361. case Message.MessageType.AssetFile_DeleteById:
  362. case Message.MessageType.AssetFile_DeleteByName:
  363. message = new MessageWithAssetFileDeleteResult(messageHandle);
  364. break;
  365. case Message.MessageType.AssetFile_DownloadCancel:
  366. case Message.MessageType.AssetFile_DownloadCancelById:
  367. case Message.MessageType.AssetFile_DownloadCancelByName:
  368. message = new MessageWithAssetFileDownloadCancelResult(messageHandle);
  369. break;
  370. case Message.MessageType.AssetFile_Download:
  371. case Message.MessageType.AssetFile_DownloadById:
  372. case Message.MessageType.AssetFile_DownloadByName:
  373. case Message.MessageType.LanguagePack_SetCurrent:
  374. message = new MessageWithAssetFileDownloadResult(messageHandle);
  375. break;
  376. case Message.MessageType.Notification_AssetFile_DownloadUpdate:
  377. message = new MessageWithAssetFileDownloadUpdate(messageHandle);
  378. break;
  379. case Message.MessageType.Notification_Cal_FinalizeApplication:
  380. message = new MessageWithCalApplicationFinalized(messageHandle);
  381. break;
  382. case Message.MessageType.Notification_Cal_ProposeApplication:
  383. message = new MessageWithCalApplicationProposed(messageHandle);
  384. break;
  385. case Message.MessageType.CloudStorage_LoadConflictMetadata:
  386. message = new MessageWithCloudStorageConflictMetadata(messageHandle);
  387. break;
  388. case Message.MessageType.CloudStorage_Load:
  389. case Message.MessageType.CloudStorage_LoadHandle:
  390. message = new MessageWithCloudStorageData(messageHandle);
  391. break;
  392. case Message.MessageType.CloudStorage_LoadMetadata:
  393. message = new MessageWithCloudStorageMetadataUnderLocal(messageHandle);
  394. break;
  395. case Message.MessageType.CloudStorage_GetNextCloudStorageMetadataArrayPage:
  396. case Message.MessageType.CloudStorage_LoadBucketMetadata:
  397. message = new MessageWithCloudStorageMetadataList(messageHandle);
  398. break;
  399. case Message.MessageType.CloudStorage_Delete:
  400. case Message.MessageType.CloudStorage_ResolveKeepLocal:
  401. case Message.MessageType.CloudStorage_ResolveKeepRemote:
  402. case Message.MessageType.CloudStorage_Save:
  403. message = new MessageWithCloudStorageUpdateResponse(messageHandle);
  404. break;
  405. case Message.MessageType.RichPresence_GetDestinations:
  406. case Message.MessageType.RichPresence_GetNextDestinationArrayPage:
  407. message = new MessageWithDestinationList(messageHandle);
  408. break;
  409. case Message.MessageType.ApplicationLifecycle_RegisterSessionKey:
  410. case Message.MessageType.Entitlement_GetIsViewerEntitled:
  411. case Message.MessageType.IAP_ConsumePurchase:
  412. case Message.MessageType.Matchmaking_Cancel:
  413. case Message.MessageType.Matchmaking_Cancel2:
  414. case Message.MessageType.Matchmaking_ReportResultInsecure:
  415. case Message.MessageType.Matchmaking_StartMatch:
  416. case Message.MessageType.Notification_MarkAsRead:
  417. case Message.MessageType.RichPresence_Clear:
  418. case Message.MessageType.RichPresence_Set:
  419. case Message.MessageType.Room_LaunchInvitableUserFlow:
  420. case Message.MessageType.Room_UpdateOwner:
  421. case Message.MessageType.User_LaunchProfile:
  422. message = new Message(messageHandle);
  423. break;
  424. case Message.MessageType.User_LaunchFriendRequestFlow:
  425. message = new MessageWithLaunchFriendRequestFlowResult(messageHandle);
  426. break;
  427. case Message.MessageType.Leaderboard_GetEntries:
  428. case Message.MessageType.Leaderboard_GetEntriesAfterRank:
  429. case Message.MessageType.Leaderboard_GetNextEntries:
  430. case Message.MessageType.Leaderboard_GetPreviousEntries:
  431. message = new MessageWithLeaderboardEntryList(messageHandle);
  432. break;
  433. case Message.MessageType.Leaderboard_WriteEntry:
  434. message = new MessageWithLeaderboardDidUpdate(messageHandle);
  435. break;
  436. case Message.MessageType.Livestreaming_GetStatus:
  437. case Message.MessageType.Livestreaming_PauseStream:
  438. case Message.MessageType.Livestreaming_ResumeStream:
  439. case Message.MessageType.Notification_Livestreaming_StatusChange:
  440. message = new MessageWithLivestreamingStatus(messageHandle);
  441. break;
  442. case Message.MessageType.Matchmaking_GetAdminSnapshot:
  443. message = new MessageWithMatchmakingAdminSnapshot(messageHandle);
  444. break;
  445. case Message.MessageType.Matchmaking_Browse:
  446. case Message.MessageType.Matchmaking_Browse2:
  447. message = new MessageWithMatchmakingBrowseResult(messageHandle);
  448. break;
  449. case Message.MessageType.Matchmaking_Enqueue:
  450. case Message.MessageType.Matchmaking_Enqueue2:
  451. case Message.MessageType.Matchmaking_EnqueueRoom:
  452. case Message.MessageType.Matchmaking_EnqueueRoom2:
  453. message = new MessageWithMatchmakingEnqueueResult(messageHandle);
  454. break;
  455. case Message.MessageType.Matchmaking_CreateAndEnqueueRoom:
  456. case Message.MessageType.Matchmaking_CreateAndEnqueueRoom2:
  457. message = new MessageWithMatchmakingEnqueueResultAndRoom(messageHandle);
  458. break;
  459. case Message.MessageType.Matchmaking_GetStats:
  460. message = new MessageWithMatchmakingStatsUnderMatchmakingStats(messageHandle);
  461. break;
  462. case Message.MessageType.Notification_NetSync_ConnectionStatusChanged:
  463. message = new MessageWithNetSyncConnection(messageHandle);
  464. break;
  465. case Message.MessageType.Notification_NetSync_SessionsChanged:
  466. message = new MessageWithNetSyncSessionsChangedNotification(messageHandle);
  467. break;
  468. case Message.MessageType.User_GetOrgScopedID:
  469. message = new MessageWithOrgScopedID(messageHandle);
  470. break;
  471. case Message.MessageType.Party_GetCurrent:
  472. message = new MessageWithPartyUnderCurrentParty(messageHandle);
  473. break;
  474. case Message.MessageType.Notification_Party_PartyUpdate:
  475. message = new MessageWithPartyUpdateNotification(messageHandle);
  476. break;
  477. case Message.MessageType.ApplicationLifecycle_GetRegisteredPIDs:
  478. message = new MessageWithPidList(messageHandle);
  479. break;
  480. case Message.MessageType.IAP_GetNextProductArrayPage:
  481. case Message.MessageType.IAP_GetProductsBySKU:
  482. message = new MessageWithProductList(messageHandle);
  483. break;
  484. case Message.MessageType.IAP_LaunchCheckoutFlow:
  485. message = new MessageWithPurchase(messageHandle);
  486. break;
  487. case Message.MessageType.IAP_GetNextPurchaseArrayPage:
  488. case Message.MessageType.IAP_GetViewerPurchases:
  489. case Message.MessageType.IAP_GetViewerPurchasesDurableCache:
  490. message = new MessageWithPurchaseList(messageHandle);
  491. break;
  492. case Message.MessageType.Room_Get:
  493. message = new MessageWithRoom(messageHandle);
  494. break;
  495. case Message.MessageType.Room_GetCurrent:
  496. case Message.MessageType.Room_GetCurrentForUser:
  497. message = new MessageWithRoomUnderCurrentRoom(messageHandle);
  498. break;
  499. case Message.MessageType.Matchmaking_CreateRoom:
  500. case Message.MessageType.Matchmaking_CreateRoom2:
  501. case Message.MessageType.Matchmaking_JoinRoom:
  502. case Message.MessageType.Notification_Room_RoomUpdate:
  503. case Message.MessageType.Room_CreateAndJoinPrivate:
  504. case Message.MessageType.Room_CreateAndJoinPrivate2:
  505. case Message.MessageType.Room_InviteUser:
  506. case Message.MessageType.Room_Join:
  507. case Message.MessageType.Room_Join2:
  508. case Message.MessageType.Room_KickUser:
  509. case Message.MessageType.Room_Leave:
  510. case Message.MessageType.Room_SetDescription:
  511. case Message.MessageType.Room_UpdateDataStore:
  512. case Message.MessageType.Room_UpdateMembershipLockStatus:
  513. case Message.MessageType.Room_UpdatePrivateRoomJoinPolicy:
  514. message = new MessageWithRoomUnderViewerRoom(messageHandle);
  515. break;
  516. case Message.MessageType.Room_GetModeratedRooms:
  517. case Message.MessageType.Room_GetNextRoomArrayPage:
  518. message = new MessageWithRoomList(messageHandle);
  519. break;
  520. case Message.MessageType.Notification_Room_InviteReceived:
  521. message = new MessageWithRoomInviteNotification(messageHandle);
  522. break;
  523. case Message.MessageType.Notification_GetNextRoomInviteNotificationArrayPage:
  524. case Message.MessageType.Notification_GetRoomInvites:
  525. message = new MessageWithRoomInviteNotificationList(messageHandle);
  526. break;
  527. case Message.MessageType.User_GetSdkAccounts:
  528. message = new MessageWithSdkAccountList(messageHandle);
  529. break;
  530. case Message.MessageType.Media_ShareToFacebook:
  531. message = new MessageWithShareMediaResult(messageHandle);
  532. break;
  533. case Message.MessageType.ApplicationLifecycle_GetSessionKey:
  534. case Message.MessageType.Application_LaunchOtherApp:
  535. case Message.MessageType.CloudStorage2_GetUserDirectoryPath:
  536. case Message.MessageType.Notification_ApplicationLifecycle_LaunchIntentChanged:
  537. case Message.MessageType.Notification_Room_InviteAccepted:
  538. case Message.MessageType.User_GetAccessToken:
  539. message = new MessageWithString(messageHandle);
  540. break;
  541. case Message.MessageType.Voip_SetSystemVoipSuppressed:
  542. message = new MessageWithSystemVoipState(messageHandle);
  543. break;
  544. case Message.MessageType.User_Get:
  545. case Message.MessageType.User_GetLoggedInUser:
  546. message = new MessageWithUser(messageHandle);
  547. break;
  548. case Message.MessageType.User_GetLoggedInUserFriendsAndRooms:
  549. case Message.MessageType.User_GetLoggedInUserRecentlyMetUsersAndRooms:
  550. case Message.MessageType.User_GetNextUserAndRoomArrayPage:
  551. message = new MessageWithUserAndRoomList(messageHandle);
  552. break;
  553. case Message.MessageType.Room_GetInvitableUsers:
  554. case Message.MessageType.Room_GetInvitableUsers2:
  555. case Message.MessageType.User_GetLoggedInUserFriends:
  556. case Message.MessageType.User_GetNextUserArrayPage:
  557. message = new MessageWithUserList(messageHandle);
  558. break;
  559. case Message.MessageType.User_GetUserProof:
  560. message = new MessageWithUserProof(messageHandle);
  561. break;
  562. case Message.MessageType.Notification_Networking_ConnectionStateChange:
  563. case Message.MessageType.Notification_Networking_PeerConnectRequest:
  564. message = new MessageWithNetworkingPeer(messageHandle);
  565. break;
  566. case Message.MessageType.Notification_Networking_PingResult:
  567. message = new MessageWithPingResult(messageHandle);
  568. break;
  569. case Message.MessageType.Notification_Matchmaking_MatchFound:
  570. message = new MessageWithMatchmakingNotification(messageHandle);
  571. break;
  572. case Message.MessageType.Notification_Voip_ConnectRequest:
  573. case Message.MessageType.Notification_Voip_StateChange:
  574. message = new MessageWithNetworkingPeer(messageHandle);
  575. break;
  576. case Message.MessageType.Notification_Voip_SystemVoipState:
  577. message = new MessageWithSystemVoipState(messageHandle);
  578. break;
  579. case Message.MessageType.Notification_HTTP_Transfer:
  580. message = new MessageWithHttpTransferUpdate(messageHandle);
  581. break;
  582. case Message.MessageType.Platform_InitializeWithAccessToken:
  583. case Message.MessageType.Platform_InitializeStandaloneOculus:
  584. case Message.MessageType.Platform_InitializeAndroidAsynchronous:
  585. case Message.MessageType.Platform_InitializeWindowsAsynchronous:
  586. message = new MessageWithPlatformInitialize(messageHandle);
  587. break;
  588. default:
  589. message = PlatformInternal.ParseMessageHandle(messageHandle, message_type);
  590. if (message == null)
  591. {
  592. Debug.LogError(string.Format("Unrecognized message type {0}\n", message_type));
  593. }
  594. break;
  595. // OVR_MESSAGE_TYPE_END
  596. }
  597. return message;
  598. }
  599. public static Message PopMessage()
  600. {
  601. if (!Core.IsInitialized())
  602. {
  603. return null;
  604. }
  605. var messageHandle = CAPI.ovr_PopMessage();
  606. Message message = ParseMessageHandle(messageHandle);
  607. CAPI.ovr_FreeMessage(messageHandle);
  608. return message;
  609. }
  610. internal delegate Message ExtraMessageTypesHandler(IntPtr messageHandle, Message.MessageType message_type);
  611. internal static ExtraMessageTypesHandler HandleExtraMessageTypes { set; private get; }
  612. }
  613. public class MessageWithAbuseReportRecording : Message<AbuseReportRecording>
  614. {
  615. public MessageWithAbuseReportRecording(IntPtr c_message) : base(c_message) { }
  616. public override AbuseReportRecording GetAbuseReportRecording() { return Data; }
  617. protected override AbuseReportRecording GetDataFromMessage(IntPtr c_message)
  618. {
  619. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  620. var obj = CAPI.ovr_Message_GetAbuseReportRecording(msg);
  621. return new AbuseReportRecording(obj);
  622. }
  623. }
  624. public class MessageWithAchievementDefinitions : Message<AchievementDefinitionList>
  625. {
  626. public MessageWithAchievementDefinitions(IntPtr c_message) : base(c_message) { }
  627. public override AchievementDefinitionList GetAchievementDefinitions() { return Data; }
  628. protected override AchievementDefinitionList GetDataFromMessage(IntPtr c_message)
  629. {
  630. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  631. var obj = CAPI.ovr_Message_GetAchievementDefinitionArray(msg);
  632. return new AchievementDefinitionList(obj);
  633. }
  634. }
  635. public class MessageWithAchievementProgressList : Message<AchievementProgressList>
  636. {
  637. public MessageWithAchievementProgressList(IntPtr c_message) : base(c_message) { }
  638. public override AchievementProgressList GetAchievementProgressList() { return Data; }
  639. protected override AchievementProgressList GetDataFromMessage(IntPtr c_message)
  640. {
  641. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  642. var obj = CAPI.ovr_Message_GetAchievementProgressArray(msg);
  643. return new AchievementProgressList(obj);
  644. }
  645. }
  646. public class MessageWithAchievementUpdate : Message<AchievementUpdate>
  647. {
  648. public MessageWithAchievementUpdate(IntPtr c_message) : base(c_message) { }
  649. public override AchievementUpdate GetAchievementUpdate() { return Data; }
  650. protected override AchievementUpdate GetDataFromMessage(IntPtr c_message)
  651. {
  652. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  653. var obj = CAPI.ovr_Message_GetAchievementUpdate(msg);
  654. return new AchievementUpdate(obj);
  655. }
  656. }
  657. public class MessageWithApplicationVersion : Message<ApplicationVersion>
  658. {
  659. public MessageWithApplicationVersion(IntPtr c_message) : base(c_message) { }
  660. public override ApplicationVersion GetApplicationVersion() { return Data; }
  661. protected override ApplicationVersion GetDataFromMessage(IntPtr c_message)
  662. {
  663. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  664. var obj = CAPI.ovr_Message_GetApplicationVersion(msg);
  665. return new ApplicationVersion(obj);
  666. }
  667. }
  668. public class MessageWithAssetDetails : Message<AssetDetails>
  669. {
  670. public MessageWithAssetDetails(IntPtr c_message) : base(c_message) { }
  671. public override AssetDetails GetAssetDetails() { return Data; }
  672. protected override AssetDetails GetDataFromMessage(IntPtr c_message)
  673. {
  674. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  675. var obj = CAPI.ovr_Message_GetAssetDetails(msg);
  676. return new AssetDetails(obj);
  677. }
  678. }
  679. public class MessageWithAssetDetailsList : Message<AssetDetailsList>
  680. {
  681. public MessageWithAssetDetailsList(IntPtr c_message) : base(c_message) { }
  682. public override AssetDetailsList GetAssetDetailsList() { return Data; }
  683. protected override AssetDetailsList GetDataFromMessage(IntPtr c_message)
  684. {
  685. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  686. var obj = CAPI.ovr_Message_GetAssetDetailsArray(msg);
  687. return new AssetDetailsList(obj);
  688. }
  689. }
  690. public class MessageWithAssetFileDeleteResult : Message<AssetFileDeleteResult>
  691. {
  692. public MessageWithAssetFileDeleteResult(IntPtr c_message) : base(c_message) { }
  693. public override AssetFileDeleteResult GetAssetFileDeleteResult() { return Data; }
  694. protected override AssetFileDeleteResult GetDataFromMessage(IntPtr c_message)
  695. {
  696. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  697. var obj = CAPI.ovr_Message_GetAssetFileDeleteResult(msg);
  698. return new AssetFileDeleteResult(obj);
  699. }
  700. }
  701. public class MessageWithAssetFileDownloadCancelResult : Message<AssetFileDownloadCancelResult>
  702. {
  703. public MessageWithAssetFileDownloadCancelResult(IntPtr c_message) : base(c_message) { }
  704. public override AssetFileDownloadCancelResult GetAssetFileDownloadCancelResult() { return Data; }
  705. protected override AssetFileDownloadCancelResult GetDataFromMessage(IntPtr c_message)
  706. {
  707. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  708. var obj = CAPI.ovr_Message_GetAssetFileDownloadCancelResult(msg);
  709. return new AssetFileDownloadCancelResult(obj);
  710. }
  711. }
  712. public class MessageWithAssetFileDownloadResult : Message<AssetFileDownloadResult>
  713. {
  714. public MessageWithAssetFileDownloadResult(IntPtr c_message) : base(c_message) { }
  715. public override AssetFileDownloadResult GetAssetFileDownloadResult() { return Data; }
  716. protected override AssetFileDownloadResult GetDataFromMessage(IntPtr c_message)
  717. {
  718. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  719. var obj = CAPI.ovr_Message_GetAssetFileDownloadResult(msg);
  720. return new AssetFileDownloadResult(obj);
  721. }
  722. }
  723. public class MessageWithAssetFileDownloadUpdate : Message<AssetFileDownloadUpdate>
  724. {
  725. public MessageWithAssetFileDownloadUpdate(IntPtr c_message) : base(c_message) { }
  726. public override AssetFileDownloadUpdate GetAssetFileDownloadUpdate() { return Data; }
  727. protected override AssetFileDownloadUpdate GetDataFromMessage(IntPtr c_message)
  728. {
  729. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  730. var obj = CAPI.ovr_Message_GetAssetFileDownloadUpdate(msg);
  731. return new AssetFileDownloadUpdate(obj);
  732. }
  733. }
  734. public class MessageWithCalApplicationFinalized : Message<CalApplicationFinalized>
  735. {
  736. public MessageWithCalApplicationFinalized(IntPtr c_message) : base(c_message) { }
  737. public override CalApplicationFinalized GetCalApplicationFinalized() { return Data; }
  738. protected override CalApplicationFinalized GetDataFromMessage(IntPtr c_message)
  739. {
  740. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  741. var obj = CAPI.ovr_Message_GetCalApplicationFinalized(msg);
  742. return new CalApplicationFinalized(obj);
  743. }
  744. }
  745. public class MessageWithCalApplicationProposed : Message<CalApplicationProposed>
  746. {
  747. public MessageWithCalApplicationProposed(IntPtr c_message) : base(c_message) { }
  748. public override CalApplicationProposed GetCalApplicationProposed() { return Data; }
  749. protected override CalApplicationProposed GetDataFromMessage(IntPtr c_message)
  750. {
  751. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  752. var obj = CAPI.ovr_Message_GetCalApplicationProposed(msg);
  753. return new CalApplicationProposed(obj);
  754. }
  755. }
  756. public class MessageWithCalApplicationSuggestionList : Message<CalApplicationSuggestionList>
  757. {
  758. public MessageWithCalApplicationSuggestionList(IntPtr c_message) : base(c_message) { }
  759. public override CalApplicationSuggestionList GetCalApplicationSuggestionList() { return Data; }
  760. protected override CalApplicationSuggestionList GetDataFromMessage(IntPtr c_message)
  761. {
  762. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  763. var obj = CAPI.ovr_Message_GetCalApplicationSuggestionArray(msg);
  764. return new CalApplicationSuggestionList(obj);
  765. }
  766. }
  767. public class MessageWithCloudStorageConflictMetadata : Message<CloudStorageConflictMetadata>
  768. {
  769. public MessageWithCloudStorageConflictMetadata(IntPtr c_message) : base(c_message) { }
  770. public override CloudStorageConflictMetadata GetCloudStorageConflictMetadata() { return Data; }
  771. protected override CloudStorageConflictMetadata GetDataFromMessage(IntPtr c_message)
  772. {
  773. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  774. var obj = CAPI.ovr_Message_GetCloudStorageConflictMetadata(msg);
  775. return new CloudStorageConflictMetadata(obj);
  776. }
  777. }
  778. public class MessageWithCloudStorageData : Message<CloudStorageData>
  779. {
  780. public MessageWithCloudStorageData(IntPtr c_message) : base(c_message) { }
  781. public override CloudStorageData GetCloudStorageData() { return Data; }
  782. protected override CloudStorageData GetDataFromMessage(IntPtr c_message)
  783. {
  784. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  785. var obj = CAPI.ovr_Message_GetCloudStorageData(msg);
  786. return new CloudStorageData(obj);
  787. }
  788. }
  789. public class MessageWithCloudStorageMetadataUnderLocal : Message<CloudStorageMetadata>
  790. {
  791. public MessageWithCloudStorageMetadataUnderLocal(IntPtr c_message) : base(c_message) { }
  792. public override CloudStorageMetadata GetCloudStorageMetadata() { return Data; }
  793. protected override CloudStorageMetadata GetDataFromMessage(IntPtr c_message)
  794. {
  795. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  796. var obj = CAPI.ovr_Message_GetCloudStorageMetadata(msg);
  797. return new CloudStorageMetadata(obj);
  798. }
  799. }
  800. public class MessageWithCloudStorageMetadataList : Message<CloudStorageMetadataList>
  801. {
  802. public MessageWithCloudStorageMetadataList(IntPtr c_message) : base(c_message) { }
  803. public override CloudStorageMetadataList GetCloudStorageMetadataList() { return Data; }
  804. protected override CloudStorageMetadataList GetDataFromMessage(IntPtr c_message)
  805. {
  806. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  807. var obj = CAPI.ovr_Message_GetCloudStorageMetadataArray(msg);
  808. return new CloudStorageMetadataList(obj);
  809. }
  810. }
  811. public class MessageWithCloudStorageUpdateResponse : Message<CloudStorageUpdateResponse>
  812. {
  813. public MessageWithCloudStorageUpdateResponse(IntPtr c_message) : base(c_message) { }
  814. public override CloudStorageUpdateResponse GetCloudStorageUpdateResponse() { return Data; }
  815. protected override CloudStorageUpdateResponse GetDataFromMessage(IntPtr c_message)
  816. {
  817. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  818. var obj = CAPI.ovr_Message_GetCloudStorageUpdateResponse(msg);
  819. return new CloudStorageUpdateResponse(obj);
  820. }
  821. }
  822. public class MessageWithDestinationList : Message<DestinationList>
  823. {
  824. public MessageWithDestinationList(IntPtr c_message) : base(c_message) { }
  825. public override DestinationList GetDestinationList() { return Data; }
  826. protected override DestinationList GetDataFromMessage(IntPtr c_message)
  827. {
  828. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  829. var obj = CAPI.ovr_Message_GetDestinationArray(msg);
  830. return new DestinationList(obj);
  831. }
  832. }
  833. public class MessageWithInstalledApplicationList : Message<InstalledApplicationList>
  834. {
  835. public MessageWithInstalledApplicationList(IntPtr c_message) : base(c_message) { }
  836. public override InstalledApplicationList GetInstalledApplicationList() { return Data; }
  837. protected override InstalledApplicationList GetDataFromMessage(IntPtr c_message)
  838. {
  839. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  840. var obj = CAPI.ovr_Message_GetInstalledApplicationArray(msg);
  841. return new InstalledApplicationList(obj);
  842. }
  843. }
  844. public class MessageWithLaunchBlockFlowResult : Message<LaunchBlockFlowResult>
  845. {
  846. public MessageWithLaunchBlockFlowResult(IntPtr c_message) : base(c_message) { }
  847. public override LaunchBlockFlowResult GetLaunchBlockFlowResult() { return Data; }
  848. protected override LaunchBlockFlowResult GetDataFromMessage(IntPtr c_message)
  849. {
  850. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  851. var obj = CAPI.ovr_Message_GetLaunchBlockFlowResult(msg);
  852. return new LaunchBlockFlowResult(obj);
  853. }
  854. }
  855. public class MessageWithLaunchFriendRequestFlowResult : Message<LaunchFriendRequestFlowResult>
  856. {
  857. public MessageWithLaunchFriendRequestFlowResult(IntPtr c_message) : base(c_message) { }
  858. public override LaunchFriendRequestFlowResult GetLaunchFriendRequestFlowResult() { return Data; }
  859. protected override LaunchFriendRequestFlowResult GetDataFromMessage(IntPtr c_message)
  860. {
  861. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  862. var obj = CAPI.ovr_Message_GetLaunchFriendRequestFlowResult(msg);
  863. return new LaunchFriendRequestFlowResult(obj);
  864. }
  865. }
  866. public class MessageWithLaunchReportFlowResult : Message<LaunchReportFlowResult>
  867. {
  868. public MessageWithLaunchReportFlowResult(IntPtr c_message) : base(c_message) { }
  869. public override LaunchReportFlowResult GetLaunchReportFlowResult() { return Data; }
  870. protected override LaunchReportFlowResult GetDataFromMessage(IntPtr c_message)
  871. {
  872. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  873. var obj = CAPI.ovr_Message_GetLaunchReportFlowResult(msg);
  874. return new LaunchReportFlowResult(obj);
  875. }
  876. }
  877. public class MessageWithLaunchUnblockFlowResult : Message<LaunchUnblockFlowResult>
  878. {
  879. public MessageWithLaunchUnblockFlowResult(IntPtr c_message) : base(c_message) { }
  880. public override LaunchUnblockFlowResult GetLaunchUnblockFlowResult() { return Data; }
  881. protected override LaunchUnblockFlowResult GetDataFromMessage(IntPtr c_message)
  882. {
  883. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  884. var obj = CAPI.ovr_Message_GetLaunchUnblockFlowResult(msg);
  885. return new LaunchUnblockFlowResult(obj);
  886. }
  887. }
  888. public class MessageWithLeaderboardEntryList : Message<LeaderboardEntryList>
  889. {
  890. public MessageWithLeaderboardEntryList(IntPtr c_message) : base(c_message) { }
  891. public override LeaderboardEntryList GetLeaderboardEntryList() { return Data; }
  892. protected override LeaderboardEntryList GetDataFromMessage(IntPtr c_message)
  893. {
  894. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  895. var obj = CAPI.ovr_Message_GetLeaderboardEntryArray(msg);
  896. return new LeaderboardEntryList(obj);
  897. }
  898. }
  899. public class MessageWithLinkedAccountList : Message<LinkedAccountList>
  900. {
  901. public MessageWithLinkedAccountList(IntPtr c_message) : base(c_message) { }
  902. public override LinkedAccountList GetLinkedAccountList() { return Data; }
  903. protected override LinkedAccountList GetDataFromMessage(IntPtr c_message)
  904. {
  905. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  906. var obj = CAPI.ovr_Message_GetLinkedAccountArray(msg);
  907. return new LinkedAccountList(obj);
  908. }
  909. }
  910. public class MessageWithLivestreamingApplicationStatus : Message<LivestreamingApplicationStatus>
  911. {
  912. public MessageWithLivestreamingApplicationStatus(IntPtr c_message) : base(c_message) { }
  913. public override LivestreamingApplicationStatus GetLivestreamingApplicationStatus() { return Data; }
  914. protected override LivestreamingApplicationStatus GetDataFromMessage(IntPtr c_message)
  915. {
  916. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  917. var obj = CAPI.ovr_Message_GetLivestreamingApplicationStatus(msg);
  918. return new LivestreamingApplicationStatus(obj);
  919. }
  920. }
  921. public class MessageWithLivestreamingStartResult : Message<LivestreamingStartResult>
  922. {
  923. public MessageWithLivestreamingStartResult(IntPtr c_message) : base(c_message) { }
  924. public override LivestreamingStartResult GetLivestreamingStartResult() { return Data; }
  925. protected override LivestreamingStartResult GetDataFromMessage(IntPtr c_message)
  926. {
  927. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  928. var obj = CAPI.ovr_Message_GetLivestreamingStartResult(msg);
  929. return new LivestreamingStartResult(obj);
  930. }
  931. }
  932. public class MessageWithLivestreamingStatus : Message<LivestreamingStatus>
  933. {
  934. public MessageWithLivestreamingStatus(IntPtr c_message) : base(c_message) { }
  935. public override LivestreamingStatus GetLivestreamingStatus() { return Data; }
  936. protected override LivestreamingStatus GetDataFromMessage(IntPtr c_message)
  937. {
  938. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  939. var obj = CAPI.ovr_Message_GetLivestreamingStatus(msg);
  940. return new LivestreamingStatus(obj);
  941. }
  942. }
  943. public class MessageWithLivestreamingVideoStats : Message<LivestreamingVideoStats>
  944. {
  945. public MessageWithLivestreamingVideoStats(IntPtr c_message) : base(c_message) { }
  946. public override LivestreamingVideoStats GetLivestreamingVideoStats() { return Data; }
  947. protected override LivestreamingVideoStats GetDataFromMessage(IntPtr c_message)
  948. {
  949. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  950. var obj = CAPI.ovr_Message_GetLivestreamingVideoStats(msg);
  951. return new LivestreamingVideoStats(obj);
  952. }
  953. }
  954. public class MessageWithMatchmakingAdminSnapshot : Message<MatchmakingAdminSnapshot>
  955. {
  956. public MessageWithMatchmakingAdminSnapshot(IntPtr c_message) : base(c_message) { }
  957. public override MatchmakingAdminSnapshot GetMatchmakingAdminSnapshot() { return Data; }
  958. protected override MatchmakingAdminSnapshot GetDataFromMessage(IntPtr c_message)
  959. {
  960. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  961. var obj = CAPI.ovr_Message_GetMatchmakingAdminSnapshot(msg);
  962. return new MatchmakingAdminSnapshot(obj);
  963. }
  964. }
  965. public class MessageWithMatchmakingEnqueueResult : Message<MatchmakingEnqueueResult>
  966. {
  967. public MessageWithMatchmakingEnqueueResult(IntPtr c_message) : base(c_message) { }
  968. public override MatchmakingEnqueueResult GetMatchmakingEnqueueResult() { return Data; }
  969. protected override MatchmakingEnqueueResult GetDataFromMessage(IntPtr c_message)
  970. {
  971. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  972. var obj = CAPI.ovr_Message_GetMatchmakingEnqueueResult(msg);
  973. return new MatchmakingEnqueueResult(obj);
  974. }
  975. }
  976. public class MessageWithMatchmakingEnqueueResultAndRoom : Message<MatchmakingEnqueueResultAndRoom>
  977. {
  978. public MessageWithMatchmakingEnqueueResultAndRoom(IntPtr c_message) : base(c_message) { }
  979. public override MatchmakingEnqueueResultAndRoom GetMatchmakingEnqueueResultAndRoom() { return Data; }
  980. protected override MatchmakingEnqueueResultAndRoom GetDataFromMessage(IntPtr c_message)
  981. {
  982. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  983. var obj = CAPI.ovr_Message_GetMatchmakingEnqueueResultAndRoom(msg);
  984. return new MatchmakingEnqueueResultAndRoom(obj);
  985. }
  986. }
  987. public class MessageWithMatchmakingStatsUnderMatchmakingStats : Message<MatchmakingStats>
  988. {
  989. public MessageWithMatchmakingStatsUnderMatchmakingStats(IntPtr c_message) : base(c_message) { }
  990. public override MatchmakingStats GetMatchmakingStats() { return Data; }
  991. protected override MatchmakingStats GetDataFromMessage(IntPtr c_message)
  992. {
  993. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  994. var obj = CAPI.ovr_Message_GetMatchmakingStats(msg);
  995. return new MatchmakingStats(obj);
  996. }
  997. }
  998. public class MessageWithNetSyncConnection : Message<NetSyncConnection>
  999. {
  1000. public MessageWithNetSyncConnection(IntPtr c_message) : base(c_message) { }
  1001. public override NetSyncConnection GetNetSyncConnection() { return Data; }
  1002. protected override NetSyncConnection GetDataFromMessage(IntPtr c_message)
  1003. {
  1004. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1005. var obj = CAPI.ovr_Message_GetNetSyncConnection(msg);
  1006. return new NetSyncConnection(obj);
  1007. }
  1008. }
  1009. public class MessageWithNetSyncSessionList : Message<NetSyncSessionList>
  1010. {
  1011. public MessageWithNetSyncSessionList(IntPtr c_message) : base(c_message) { }
  1012. public override NetSyncSessionList GetNetSyncSessionList() { return Data; }
  1013. protected override NetSyncSessionList GetDataFromMessage(IntPtr c_message)
  1014. {
  1015. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1016. var obj = CAPI.ovr_Message_GetNetSyncSessionArray(msg);
  1017. return new NetSyncSessionList(obj);
  1018. }
  1019. }
  1020. public class MessageWithNetSyncSessionsChangedNotification : Message<NetSyncSessionsChangedNotification>
  1021. {
  1022. public MessageWithNetSyncSessionsChangedNotification(IntPtr c_message) : base(c_message) { }
  1023. public override NetSyncSessionsChangedNotification GetNetSyncSessionsChangedNotification() { return Data; }
  1024. protected override NetSyncSessionsChangedNotification GetDataFromMessage(IntPtr c_message)
  1025. {
  1026. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1027. var obj = CAPI.ovr_Message_GetNetSyncSessionsChangedNotification(msg);
  1028. return new NetSyncSessionsChangedNotification(obj);
  1029. }
  1030. }
  1031. public class MessageWithNetSyncSetSessionPropertyResult : Message<NetSyncSetSessionPropertyResult>
  1032. {
  1033. public MessageWithNetSyncSetSessionPropertyResult(IntPtr c_message) : base(c_message) { }
  1034. public override NetSyncSetSessionPropertyResult GetNetSyncSetSessionPropertyResult() { return Data; }
  1035. protected override NetSyncSetSessionPropertyResult GetDataFromMessage(IntPtr c_message)
  1036. {
  1037. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1038. var obj = CAPI.ovr_Message_GetNetSyncSetSessionPropertyResult(msg);
  1039. return new NetSyncSetSessionPropertyResult(obj);
  1040. }
  1041. }
  1042. public class MessageWithNetSyncVoipAttenuationValueList : Message<NetSyncVoipAttenuationValueList>
  1043. {
  1044. public MessageWithNetSyncVoipAttenuationValueList(IntPtr c_message) : base(c_message) { }
  1045. public override NetSyncVoipAttenuationValueList GetNetSyncVoipAttenuationValueList() { return Data; }
  1046. protected override NetSyncVoipAttenuationValueList GetDataFromMessage(IntPtr c_message)
  1047. {
  1048. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1049. var obj = CAPI.ovr_Message_GetNetSyncVoipAttenuationValueArray(msg);
  1050. return new NetSyncVoipAttenuationValueList(obj);
  1051. }
  1052. }
  1053. public class MessageWithOrgScopedID : Message<OrgScopedID>
  1054. {
  1055. public MessageWithOrgScopedID(IntPtr c_message) : base(c_message) { }
  1056. public override OrgScopedID GetOrgScopedID() { return Data; }
  1057. protected override OrgScopedID GetDataFromMessage(IntPtr c_message)
  1058. {
  1059. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1060. var obj = CAPI.ovr_Message_GetOrgScopedID(msg);
  1061. return new OrgScopedID(obj);
  1062. }
  1063. }
  1064. public class MessageWithParty : Message<Party>
  1065. {
  1066. public MessageWithParty(IntPtr c_message) : base(c_message) { }
  1067. public override Party GetParty() { return Data; }
  1068. protected override Party GetDataFromMessage(IntPtr c_message)
  1069. {
  1070. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1071. var obj = CAPI.ovr_Message_GetParty(msg);
  1072. return new Party(obj);
  1073. }
  1074. }
  1075. public class MessageWithPartyUnderCurrentParty : Message<Party>
  1076. {
  1077. public MessageWithPartyUnderCurrentParty(IntPtr c_message) : base(c_message) { }
  1078. public override Party GetParty() { return Data; }
  1079. protected override Party GetDataFromMessage(IntPtr c_message)
  1080. {
  1081. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1082. var obj = CAPI.ovr_Message_GetParty(msg);
  1083. return new Party(obj);
  1084. }
  1085. }
  1086. public class MessageWithPartyID : Message<PartyID>
  1087. {
  1088. public MessageWithPartyID(IntPtr c_message) : base(c_message) { }
  1089. public override PartyID GetPartyID() { return Data; }
  1090. protected override PartyID GetDataFromMessage(IntPtr c_message)
  1091. {
  1092. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1093. var obj = CAPI.ovr_Message_GetPartyID(msg);
  1094. return new PartyID(obj);
  1095. }
  1096. }
  1097. public class MessageWithPartyUpdateNotification : Message<PartyUpdateNotification>
  1098. {
  1099. public MessageWithPartyUpdateNotification(IntPtr c_message) : base(c_message) { }
  1100. public override PartyUpdateNotification GetPartyUpdateNotification() { return Data; }
  1101. protected override PartyUpdateNotification GetDataFromMessage(IntPtr c_message)
  1102. {
  1103. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1104. var obj = CAPI.ovr_Message_GetPartyUpdateNotification(msg);
  1105. return new PartyUpdateNotification(obj);
  1106. }
  1107. }
  1108. public class MessageWithPidList : Message<PidList>
  1109. {
  1110. public MessageWithPidList(IntPtr c_message) : base(c_message) { }
  1111. public override PidList GetPidList() { return Data; }
  1112. protected override PidList GetDataFromMessage(IntPtr c_message)
  1113. {
  1114. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1115. var obj = CAPI.ovr_Message_GetPidArray(msg);
  1116. return new PidList(obj);
  1117. }
  1118. }
  1119. public class MessageWithProductList : Message<ProductList>
  1120. {
  1121. public MessageWithProductList(IntPtr c_message) : base(c_message) { }
  1122. public override ProductList GetProductList() { return Data; }
  1123. protected override ProductList GetDataFromMessage(IntPtr c_message)
  1124. {
  1125. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1126. var obj = CAPI.ovr_Message_GetProductArray(msg);
  1127. return new ProductList(obj);
  1128. }
  1129. }
  1130. public class MessageWithPurchase : Message<Purchase>
  1131. {
  1132. public MessageWithPurchase(IntPtr c_message) : base(c_message) { }
  1133. public override Purchase GetPurchase() { return Data; }
  1134. protected override Purchase GetDataFromMessage(IntPtr c_message)
  1135. {
  1136. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1137. var obj = CAPI.ovr_Message_GetPurchase(msg);
  1138. return new Purchase(obj);
  1139. }
  1140. }
  1141. public class MessageWithPurchaseList : Message<PurchaseList>
  1142. {
  1143. public MessageWithPurchaseList(IntPtr c_message) : base(c_message) { }
  1144. public override PurchaseList GetPurchaseList() { return Data; }
  1145. protected override PurchaseList GetDataFromMessage(IntPtr c_message)
  1146. {
  1147. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1148. var obj = CAPI.ovr_Message_GetPurchaseArray(msg);
  1149. return new PurchaseList(obj);
  1150. }
  1151. }
  1152. public class MessageWithRoom : Message<Room>
  1153. {
  1154. public MessageWithRoom(IntPtr c_message) : base(c_message) { }
  1155. public override Room GetRoom() { return Data; }
  1156. protected override Room GetDataFromMessage(IntPtr c_message)
  1157. {
  1158. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1159. var obj = CAPI.ovr_Message_GetRoom(msg);
  1160. return new Room(obj);
  1161. }
  1162. }
  1163. public class MessageWithRoomUnderCurrentRoom : Message<Room>
  1164. {
  1165. public MessageWithRoomUnderCurrentRoom(IntPtr c_message) : base(c_message) { }
  1166. public override Room GetRoom() { return Data; }
  1167. protected override Room GetDataFromMessage(IntPtr c_message)
  1168. {
  1169. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1170. var obj = CAPI.ovr_Message_GetRoom(msg);
  1171. return new Room(obj);
  1172. }
  1173. }
  1174. public class MessageWithRoomUnderViewerRoom : Message<Room>
  1175. {
  1176. public MessageWithRoomUnderViewerRoom(IntPtr c_message) : base(c_message) { }
  1177. public override Room GetRoom() { return Data; }
  1178. protected override Room GetDataFromMessage(IntPtr c_message)
  1179. {
  1180. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1181. var obj = CAPI.ovr_Message_GetRoom(msg);
  1182. return new Room(obj);
  1183. }
  1184. }
  1185. public class MessageWithRoomList : Message<RoomList>
  1186. {
  1187. public MessageWithRoomList(IntPtr c_message) : base(c_message) { }
  1188. public override RoomList GetRoomList() { return Data; }
  1189. protected override RoomList GetDataFromMessage(IntPtr c_message)
  1190. {
  1191. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1192. var obj = CAPI.ovr_Message_GetRoomArray(msg);
  1193. return new RoomList(obj);
  1194. }
  1195. }
  1196. public class MessageWithRoomInviteNotification : Message<RoomInviteNotification>
  1197. {
  1198. public MessageWithRoomInviteNotification(IntPtr c_message) : base(c_message) { }
  1199. public override RoomInviteNotification GetRoomInviteNotification() { return Data; }
  1200. protected override RoomInviteNotification GetDataFromMessage(IntPtr c_message)
  1201. {
  1202. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1203. var obj = CAPI.ovr_Message_GetRoomInviteNotification(msg);
  1204. return new RoomInviteNotification(obj);
  1205. }
  1206. }
  1207. public class MessageWithRoomInviteNotificationList : Message<RoomInviteNotificationList>
  1208. {
  1209. public MessageWithRoomInviteNotificationList(IntPtr c_message) : base(c_message) { }
  1210. public override RoomInviteNotificationList GetRoomInviteNotificationList() { return Data; }
  1211. protected override RoomInviteNotificationList GetDataFromMessage(IntPtr c_message)
  1212. {
  1213. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1214. var obj = CAPI.ovr_Message_GetRoomInviteNotificationArray(msg);
  1215. return new RoomInviteNotificationList(obj);
  1216. }
  1217. }
  1218. public class MessageWithSdkAccountList : Message<SdkAccountList>
  1219. {
  1220. public MessageWithSdkAccountList(IntPtr c_message) : base(c_message) { }
  1221. public override SdkAccountList GetSdkAccountList() { return Data; }
  1222. protected override SdkAccountList GetDataFromMessage(IntPtr c_message)
  1223. {
  1224. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1225. var obj = CAPI.ovr_Message_GetSdkAccountArray(msg);
  1226. return new SdkAccountList(obj);
  1227. }
  1228. }
  1229. public class MessageWithShareMediaResult : Message<ShareMediaResult>
  1230. {
  1231. public MessageWithShareMediaResult(IntPtr c_message) : base(c_message) { }
  1232. public override ShareMediaResult GetShareMediaResult() { return Data; }
  1233. protected override ShareMediaResult GetDataFromMessage(IntPtr c_message)
  1234. {
  1235. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1236. var obj = CAPI.ovr_Message_GetShareMediaResult(msg);
  1237. return new ShareMediaResult(obj);
  1238. }
  1239. }
  1240. public class MessageWithString : Message<string>
  1241. {
  1242. public MessageWithString(IntPtr c_message) : base(c_message) { }
  1243. public override string GetString() { return Data; }
  1244. protected override string GetDataFromMessage(IntPtr c_message)
  1245. {
  1246. return CAPI.ovr_Message_GetString(c_message);
  1247. }
  1248. }
  1249. public class MessageWithSystemPermission : Message<SystemPermission>
  1250. {
  1251. public MessageWithSystemPermission(IntPtr c_message) : base(c_message) { }
  1252. public override SystemPermission GetSystemPermission() { return Data; }
  1253. protected override SystemPermission GetDataFromMessage(IntPtr c_message)
  1254. {
  1255. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1256. var obj = CAPI.ovr_Message_GetSystemPermission(msg);
  1257. return new SystemPermission(obj);
  1258. }
  1259. }
  1260. public class MessageWithSystemVoipState : Message<SystemVoipState>
  1261. {
  1262. public MessageWithSystemVoipState(IntPtr c_message) : base(c_message) { }
  1263. public override SystemVoipState GetSystemVoipState() { return Data; }
  1264. protected override SystemVoipState GetDataFromMessage(IntPtr c_message)
  1265. {
  1266. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1267. var obj = CAPI.ovr_Message_GetSystemVoipState(msg);
  1268. return new SystemVoipState(obj);
  1269. }
  1270. }
  1271. public class MessageWithUser : Message<User>
  1272. {
  1273. public MessageWithUser(IntPtr c_message) : base(c_message) { }
  1274. public override User GetUser() { return Data; }
  1275. protected override User GetDataFromMessage(IntPtr c_message)
  1276. {
  1277. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1278. var obj = CAPI.ovr_Message_GetUser(msg);
  1279. return new User(obj);
  1280. }
  1281. }
  1282. public class MessageWithUserAndRoomList : Message<UserAndRoomList>
  1283. {
  1284. public MessageWithUserAndRoomList(IntPtr c_message) : base(c_message) { }
  1285. public override UserAndRoomList GetUserAndRoomList() { return Data; }
  1286. protected override UserAndRoomList GetDataFromMessage(IntPtr c_message)
  1287. {
  1288. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1289. var obj = CAPI.ovr_Message_GetUserAndRoomArray(msg);
  1290. return new UserAndRoomList(obj);
  1291. }
  1292. }
  1293. public class MessageWithUserList : Message<UserList>
  1294. {
  1295. public MessageWithUserList(IntPtr c_message) : base(c_message) { }
  1296. public override UserList GetUserList() { return Data; }
  1297. protected override UserList GetDataFromMessage(IntPtr c_message)
  1298. {
  1299. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1300. var obj = CAPI.ovr_Message_GetUserArray(msg);
  1301. return new UserList(obj);
  1302. }
  1303. }
  1304. public class MessageWithUserProof : Message<UserProof>
  1305. {
  1306. public MessageWithUserProof(IntPtr c_message) : base(c_message) { }
  1307. public override UserProof GetUserProof() { return Data; }
  1308. protected override UserProof GetDataFromMessage(IntPtr c_message)
  1309. {
  1310. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1311. var obj = CAPI.ovr_Message_GetUserProof(msg);
  1312. return new UserProof(obj);
  1313. }
  1314. }
  1315. public class MessageWithUserReportID : Message<UserReportID>
  1316. {
  1317. public MessageWithUserReportID(IntPtr c_message) : base(c_message) { }
  1318. public override UserReportID GetUserReportID() { return Data; }
  1319. protected override UserReportID GetDataFromMessage(IntPtr c_message)
  1320. {
  1321. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1322. var obj = CAPI.ovr_Message_GetUserReportID(msg);
  1323. return new UserReportID(obj);
  1324. }
  1325. }
  1326. public class MessageWithNetworkingPeer : Message<NetworkingPeer>
  1327. {
  1328. public MessageWithNetworkingPeer(IntPtr c_message) : base(c_message) { }
  1329. public override NetworkingPeer GetNetworkingPeer() { return Data; }
  1330. protected override NetworkingPeer GetDataFromMessage(IntPtr c_message)
  1331. {
  1332. var peer = CAPI.ovr_Message_GetNetworkingPeer(c_message);
  1333. return new NetworkingPeer(
  1334. CAPI.ovr_NetworkingPeer_GetID(peer),
  1335. CAPI.ovr_NetworkingPeer_GetState(peer)
  1336. );
  1337. }
  1338. }
  1339. public class MessageWithPingResult : Message<PingResult>
  1340. {
  1341. public MessageWithPingResult(IntPtr c_message) : base(c_message) { }
  1342. public override PingResult GetPingResult() { return Data; }
  1343. protected override PingResult GetDataFromMessage(IntPtr c_message)
  1344. {
  1345. var ping = CAPI.ovr_Message_GetPingResult(c_message);
  1346. bool is_timeout = CAPI.ovr_PingResult_IsTimeout(ping);
  1347. return new PingResult(
  1348. CAPI.ovr_PingResult_GetID(ping),
  1349. is_timeout ? (UInt64?)null : CAPI.ovr_PingResult_GetPingTimeUsec(ping)
  1350. );
  1351. }
  1352. }
  1353. public class MessageWithLeaderboardDidUpdate : Message<bool>
  1354. {
  1355. public MessageWithLeaderboardDidUpdate(IntPtr c_message) : base(c_message) { }
  1356. public override bool GetLeaderboardDidUpdate() { return Data; }
  1357. protected override bool GetDataFromMessage(IntPtr c_message)
  1358. {
  1359. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1360. var obj = CAPI.ovr_Message_GetLeaderboardUpdateStatus(msg);
  1361. return CAPI.ovr_LeaderboardUpdateStatus_GetDidUpdate(obj);
  1362. }
  1363. }
  1364. public class MessageWithMatchmakingNotification : Message<Room>
  1365. {
  1366. public MessageWithMatchmakingNotification(IntPtr c_message) : base(c_message) {}
  1367. public override Room GetRoom() { return Data; }
  1368. protected override Room GetDataFromMessage(IntPtr c_message)
  1369. {
  1370. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1371. var obj = CAPI.ovr_Message_GetRoom(msg);
  1372. return new Room(obj);
  1373. }
  1374. }
  1375. public class MessageWithMatchmakingBrowseResult : Message<MatchmakingBrowseResult>
  1376. {
  1377. public MessageWithMatchmakingBrowseResult(IntPtr c_message) : base(c_message) {}
  1378. public override MatchmakingEnqueueResult GetMatchmakingEnqueueResult() { return Data.EnqueueResult; }
  1379. public override RoomList GetRoomList() { return Data.Rooms; }
  1380. protected override MatchmakingBrowseResult GetDataFromMessage(IntPtr c_message)
  1381. {
  1382. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1383. var obj = CAPI.ovr_Message_GetMatchmakingBrowseResult(msg);
  1384. return new MatchmakingBrowseResult(obj);
  1385. }
  1386. }
  1387. public class MessageWithHttpTransferUpdate : Message<HttpTransferUpdate>
  1388. {
  1389. public MessageWithHttpTransferUpdate(IntPtr c_message) : base(c_message) {}
  1390. public override HttpTransferUpdate GetHttpTransferUpdate() { return Data; }
  1391. protected override HttpTransferUpdate GetDataFromMessage(IntPtr c_message)
  1392. {
  1393. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1394. var obj = CAPI.ovr_Message_GetHttpTransferUpdate(msg);
  1395. return new HttpTransferUpdate(obj);
  1396. }
  1397. }
  1398. public class MessageWithPlatformInitialize : Message<PlatformInitialize>
  1399. {
  1400. public MessageWithPlatformInitialize(IntPtr c_message) : base(c_message) {}
  1401. public override PlatformInitialize GetPlatformInitialize() { return Data; }
  1402. protected override PlatformInitialize GetDataFromMessage(IntPtr c_message)
  1403. {
  1404. var msg = CAPI.ovr_Message_GetNativeMessage(c_message);
  1405. var obj = CAPI.ovr_Message_GetPlatformInitialize(msg);
  1406. return new PlatformInitialize(obj);
  1407. }
  1408. }
  1409. }