선물 받기 Method

Namespace: Matrix.Component
Assembly: MatrixGames (in MatrixGames.dll)

void AcceptGift( 
int memoID1
int memoID2
Callback<AcceptGiftResponse> cb 
)
This language is not supported or no code example is available.

Parameters

memoID1

Type: int

memo ID (high) (-1 이면 모두 받기)

memoID2

Type: int

memo ID (high) (-1 이면 모두 받기)

cb

Type: Callback<AcceptGiftResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data AcceptGiftResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

친구에게 보내준 선물을 받는 Method
	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onGiftAcceptGiftTest(Matrix.CallbackInfo<Matrix.Domain.Gift.AcceptGiftResponse> info)
  {
      Debug.Log("onGiftAcceptGiftTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          string message = info.response.StructToJson();
 
          Debug.Log(message);
      }
  }
 
  static void GiftAcceptGiftTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[GiftAcceptGiftTest]");
 
      API.Gift.AcceptGift(memoID1, memoID2, onGiftAcceptGiftTest);
  }
 					

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0