90 lines
2.3 KiB
C#
90 lines
2.3 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace ChatController.LoginKlassen
|
|
{
|
|
public class UserMessages
|
|
{
|
|
[JsonProperty("response")]
|
|
public UserMessageInput Response { get; set; }
|
|
|
|
[JsonProperty("message")]
|
|
public string Message { get; set; }
|
|
|
|
[JsonProperty("errors")]
|
|
public string Errors { get; set; }
|
|
|
|
[JsonProperty("success")]
|
|
public bool Success { get; set; }
|
|
}
|
|
|
|
public class UserMessageInput
|
|
{
|
|
[JsonProperty("currentPage")]
|
|
public string CurrentPage { get; set; }
|
|
|
|
[JsonProperty("hasMorePages")]
|
|
public bool HasMorePages { get; set; }
|
|
|
|
[JsonProperty("nextPage")]
|
|
public string NextPage { get; set; }
|
|
|
|
[JsonProperty("perPage")]
|
|
public int PerPage { get; set; }
|
|
|
|
[JsonProperty("previousPage")]
|
|
public string PreviousPage { get; set; }
|
|
|
|
[JsonProperty("messages")]
|
|
public OwnChatMessage[] Messages { get; set; }
|
|
}
|
|
|
|
public class OwnChatMessage
|
|
{
|
|
[JsonProperty("id")]
|
|
public long Id { get; set; }
|
|
|
|
[JsonProperty("text")]
|
|
public string Text { get; set; }
|
|
|
|
[JsonProperty("file")]
|
|
public string File { get; set; }
|
|
|
|
[JsonProperty("file_protected")]
|
|
public string FileProtected { get; set; }
|
|
|
|
[JsonProperty("original_filename")]
|
|
public string OriginalFilename { get; set; }
|
|
|
|
[JsonProperty("smaller_image")]
|
|
public string SmallerImage { get; set; }
|
|
|
|
[JsonProperty("file_size")]
|
|
public long FileSize { get; set; }
|
|
|
|
[JsonConverter(typeof(TimeStampConverter))]
|
|
[JsonProperty("timestamp")]
|
|
public LastMessageTimeStamp Timestamp { get; set; }
|
|
|
|
[JsonProperty("created_at")]
|
|
public long CreatedAt { get; set; }
|
|
|
|
[JsonProperty("deleted_at")]
|
|
public long? DeletedAt { get; set; }
|
|
|
|
[JsonProperty("userid")]
|
|
public long UserId { get; set; }
|
|
|
|
[JsonProperty("userid_manage")]
|
|
public string UserIdManage { get; set; }
|
|
|
|
[JsonProperty("user_name")]
|
|
public string UserName { get; set; }
|
|
|
|
[JsonProperty("user_picture")]
|
|
public string UserPicture { get; set; }
|
|
|
|
[JsonProperty("groupid")]
|
|
public long GroupId { get; set; }
|
|
}
|
|
}
|