59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace ChatController.LoginKlassen
|
|
{
|
|
public class UserDaten
|
|
{
|
|
public string Token { get; set; }
|
|
|
|
public OwnChatLoginResponse Response { get; set; }
|
|
|
|
public string Message { get; set; }
|
|
|
|
public Tetserror Errors { get; set; }
|
|
|
|
public bool Success { get; set; }
|
|
}
|
|
|
|
public class InputTest
|
|
{
|
|
public OwnChatLoginResponse User { get; set; }
|
|
}
|
|
|
|
public class OwnChatLoginResponse
|
|
{
|
|
[JsonProperty("file_upload_max_size")]
|
|
public long FileUploadMaxSize { get; set; }
|
|
|
|
public string Token { get; set; }
|
|
|
|
public OwnChatUser User { get; set; }
|
|
}
|
|
|
|
public class Tetserror
|
|
{
|
|
public string[] chatcode_failed{ get; set; }
|
|
public string[] login_failed { get; set; }
|
|
}
|
|
|
|
public class OwnChatUser
|
|
{
|
|
public long Oid { get; set; }
|
|
|
|
public string UserId { get; set; }
|
|
|
|
public string Firstname { get; set; }
|
|
|
|
public string Lastname { get; set; }
|
|
|
|
public string Mobile { get; set; }
|
|
|
|
public string Picture { get; set; }
|
|
|
|
[JsonProperty("is_employee")]
|
|
public bool IsEmployee { get; set; }
|
|
|
|
public string Token { get; set; }
|
|
}
|
|
}
|