using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Studio.Scripts.HttpMessage { public class RoomListMessage : BaseHttpMessage { public RoomListBody body; public string token { set { headers["token"] = value; } } public RoomListMessage() { messageModuleType = MessageModuleType.Room; methodType = HttpMethodType.Post; _path = "v1/roomList"; headers = new Dictionary(); headers.Add("Content-Type", "application/json"); headers.Add("token", ""); _wwwForm = null; } public override WWWForm wwwForm { get { if (_wwwForm == null) { _wwwForm = GetWWWFrom(body); } return _wwwForm; } } public override string ToBodyString() { return Newtonsoft.Json.JsonConvert.SerializeObject(body); } } public struct RoomListBody { } }