login implemented

This commit is contained in:
shinichi
2020-09-25 15:33:39 +02:00
parent 9c3b2c3f9b
commit 21203fd3ff
3 changed files with 47 additions and 30 deletions

View File

@@ -64,6 +64,11 @@ namespace Client
return getJsonMessage(LOGIN_RESPONSE, new { status = mStatus });
}
public static string getResponseStatus(byte[] json)
{
return ((dynamic)JsonConvert.DeserializeObject(Encoding.ASCII.GetString(json))).data.status;
}
/// <summary>
/// get the identifier from json
/// </summary>