친구에게 Push 메세지 전송

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

void SendPushMessage( 
string friendId
string message
Callback<SendPushMessageResponse> cb 
)
This language is not supported or no code example is available.

Parameters

friendId

Type: string

메세지를 전송할 친구 ID

message

Type: string

전송할 메세지

cb

Type: Callback<SendPushMessageResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

친구에게 Push 메세지 전송하는 Method.
	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onPushSendPushMessageTest(Matrix.CallbackInfo<Matrix.Domain.Push.SendPushMessageResponse> info)
  {
      Debug.Log("onPushSendPushMessageTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
         /* result 값만 있고 Response Data는 없음 */
         Debug.log("Success");
      }
  }
 
  static void PushSendPushMessageTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[PushSendPushMessageTest]");
 
      API.Push.SendPushMessage("8739238182", "Invite Game", onPushSendPushMessageTest);
  }
 					

.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