public static Hashtable MNBuddyRoomParamsToDictionary(MNBuddyRoomParams srcObject)
        {
            Hashtable result = new Hashtable(5);

              result["GameSetId"] = srcObject.GameSetId;
              result["InviteText"] = srcObject.InviteText;
              result["RoomName"] = srcObject.RoomName;
              result["ToUserIdList"] = srcObject.ToUserIdList;
              result["ToUserSFIdList"] = srcObject.ToUserSFIdList;

              return result;
        }
        public static MNBuddyRoomParams MNBuddyRoomParamsFromDictionary(IDictionary deserializedObject)
        {
            if (deserializedObject == null) {
            return null;
              }

              MNBuddyRoomParams typedResult = new MNBuddyRoomParams();

              typedResult.GameSetId = Convert.ToInt32(deserializedObject["GameSetId"]); //GameSetId is int, not int?
              typedResult.InviteText = (string)deserializedObject["InviteText"];
              typedResult.RoomName = (string)deserializedObject["RoomName"];
              typedResult.ToUserIdList = (string)deserializedObject["ToUserIdList"];
              typedResult.ToUserSFIdList = (string)deserializedObject["ToUserSFIdList"];

              return typedResult;
        }
예제 #3
0
 public void ReqCreateBuddyRoom(MNBuddyRoomParams buddyRoomParams)
 {
 }
예제 #4
0
        public void ReqCreateBuddyRoom(MNBuddyRoomParams buddyRoomParams)
        {
            MNTools.DLog("MNSession:ReqCreateBuddyRoom");

              if (Application.platform == RuntimePlatform.Android) {
            MNSessionUnityClass.CallStatic("reqCreateBuddyRoom",MNUnityCommunicator.Serializer.Serialize(buddyRoomParams));
              }
              else {
              }
        }
예제 #5
0
        public void ReqCreateBuddyRoom(MNBuddyRoomParams buddyRoomParams)
        {
            MNTools.DLog("MNSession:ReqCreateBuddyRoom");

              if (Application.platform == RuntimePlatform.IPhonePlayer) {
            _MNSession_ReqCreateBuddyRoom(MNUnityCommunicator.Serializer.Serialize(buddyRoomParams));
              }
              else {
              }
        }