유저 프로필 조회

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

void GetProperty( 
string propertyID
Callback<GetPropertyResponse> cb 
)
This language is not supported or no code example is available.

Parameters

propertyID

Type: string

설정할 프로필 타입 ID. ex) "nickName" or "profileUrl"

cb

Type: Callback<GetPropertyResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data. ref. InfoResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

유저 탈퇴
	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onUserGetPropertyTest(Matrix.CallbackInfo<Matrix.Domain.User.GetPropertyResponse> info)
  {
      Debug.Log("onUserGetPropertyTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          Debug.Log("Property value: " + info.response.value)
      }
  }
 
  static void UserGetPropertyTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[UserGetPropertyTest]");
 
      API.User.SetProperty("nickName", onUserGetPropertyTest);
  }
 					

.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