private void StringDataRecieved(int clientId, string data) { ClientCommNotifyObject obj = null; //Should deserialized the data and get the message and clientId DeserializedFromJson(data, ref obj); RecieveData(obj.m_data); }
public void DeserializedFromJson(string data, ref ClientCommNotifyObject obj) { obj = JsonConvert.DeserializeObject <CommServiceData>(data).obj; }