Exemple #1
0
 internal byte[] Data()
 {
     if (!this.RequestSucceeded())
     {
         throw new InvalidOperationException("Request did not succeed");
     }
     return(PInvokeUtilities.OutParamsToArray <byte>((PInvokeUtilities.OutMethod <byte>)((out_bytes, out_size) => GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_ReadResponse_GetData(this.SelfPtr(), out_bytes, out_size))));
 }
Exemple #2
0
 internal byte[] Data()
 {
     if (GooglePlayGames.Native.Cwrapper.TurnBasedMatch.TurnBasedMatch_HasData(this.SelfPtr()))
     {
         return(PInvokeUtilities.OutParamsToArray <byte>((PInvokeUtilities.OutMethod <byte>)((bytes, size) => GooglePlayGames.Native.Cwrapper.TurnBasedMatch.TurnBasedMatch_Data(this.SelfPtr(), bytes, size))));
     }
     Logger.d("Match has no data.");
     return((byte[])null);
 }
Exemple #3
0
 internal byte[] Data()
 {
     if (!TurnBasedMatch.TurnBasedMatch_HasData(base.SelfPtr()))
     {
         Logger.d("Match has no data.");
         return(null);
     }
     return(PInvokeUtilities.OutParamsToArray <byte>((bytes, size) => TurnBasedMatch.TurnBasedMatch_Data(base.SelfPtr(), bytes, size)));
 }
 internal byte[] Data()
 {
     if (!GooglePlayGames.Native.Cwrapper.TurnBasedMatch.TurnBasedMatch_HasData(SelfPtr()))
     {
         Logger.d("Match has no data.");
         return(null);
     }
     return(PInvokeUtilities.OutParamsToArray((byte[] bytes, UIntPtr size) => GooglePlayGames.Native.Cwrapper.TurnBasedMatch.TurnBasedMatch_Data(SelfPtr(), bytes, size)));
 }
 internal byte[] Data()
 {
     if (!this.RequestSucceeded())
     {
         throw new InvalidOperationException("Request did not succeed");
     }
     return(PInvokeUtilities.OutParamsToArray <byte>(delegate(byte[] out_bytes, UIntPtr out_size) {
         return GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_ReadResponse_GetData(base.SelfPtr(), out_bytes, out_size);
     }));
 }
            internal byte[] Data()
            {
                if (!RequestSucceeded())
                {
                    throw new InvalidOperationException("Request did not succeed");
                }

                return(PInvokeUtilities.OutParamsToArray <byte>(
                           (out_bytes, out_size) => C.SnapshotManager_ReadResponse_GetData(
                               SelfPtr(), out_bytes, out_size)));
            }
 internal byte[] Payload()
 {
     return(PInvokeUtilities.OutParamsToArray <byte>((out_arg, out_size) =>
                                                     C.ConnectionRequest_GetPayload(SelfPtr(), out_arg, out_size)));
 }
            internal List <NativeEvent> Data()
            {
                IntPtr[] events = PInvokeUtilities.OutParamsToArray <IntPtr>((out_arg, out_size) => C.EventManager_FetchAllResponse_GetData(SelfPtr(), out_arg, out_size));

                return(events.Select(ptr => new NativeEvent(ptr)).ToList());
            }
 internal List <NativeEvent> Data()
 {
     IntPtr[] source = PInvokeUtilities.OutParamsToArray((IntPtr[] out_arg, UIntPtr out_size) => GooglePlayGames.Native.Cwrapper.EventManager.EventManager_FetchAllResponse_GetData(SelfPtr(), out_arg, out_size));
     return((from ptr in source
             select new NativeEvent(ptr)).ToList());
 }
 internal byte[] Payload() =>
 PInvokeUtilities.OutParamsToArray <byte>((out_arg, out_size) => NearbyConnectionTypes.ConnectionResponse_GetPayload(base.SelfPtr(), out_arg, out_size));
 internal byte[] Payload()
 {
     return(PInvokeUtilities.OutParamsToArray <byte>((PInvokeUtilities.OutMethod <byte>)((out_arg, out_size) => NearbyConnectionTypes.ConnectionRequest_GetPayload(this.SelfPtr(), out_arg, out_size))));
 }
Exemple #12
0
 internal byte[] Payload()
 {
     return(PInvokeUtilities.OutParamsToArray((byte[] out_arg, UIntPtr out_size) => NearbyConnectionTypes.ConnectionResponse_GetPayload(SelfPtr(), out_arg, out_size)));
 }
 internal byte[] Payload()
 {
     return(PInvokeUtilities.OutParamsToArray <byte>(delegate(byte[] out_arg, UIntPtr out_size) {
         return NearbyConnectionTypes.ConnectionResponse_GetPayload(base.SelfPtr(), out_arg, out_size);
     }));
 }
Exemple #14
0
 internal List <NativeEvent> Data()
 {
     return(((IEnumerable <IntPtr>)PInvokeUtilities.OutParamsToArray <IntPtr>((PInvokeUtilities.OutMethod <IntPtr>)((out_arg, out_size) => GooglePlayGames.Native.Cwrapper.EventManager.EventManager_FetchAllResponse_GetData(this.SelfPtr(), out_arg, out_size)))).Select <IntPtr, NativeEvent>((Func <IntPtr, NativeEvent>)(ptr => new NativeEvent(ptr))).ToList <NativeEvent>());
 }