2026-03-23 16:11:06 +01:00
|
|
|
|
using Newtonsoft.Json;
|
2020-04-17 13:01:23 +02:00
|
|
|
|
|
|
|
|
|
|
namespace ChatController.LoginKlassen
|
2017-09-12 14:32:34 +02:00
|
|
|
|
{
|
2019-04-04 13:00:10 +02:00
|
|
|
|
public class UserMessages
|
2017-09-12 14:32:34 +02:00
|
|
|
|
{
|
2024-06-06 10:07:34 +02:00
|
|
|
|
[JsonProperty("response")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public UserMessageInput Response { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("message")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string Message { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("errors")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string Errors { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("success")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public bool Success { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class UserMessageInput
|
|
|
|
|
|
{
|
2024-06-06 10:07:34 +02:00
|
|
|
|
[JsonProperty("currentPage")]
|
2019-05-14 13:37:20 +02:00
|
|
|
|
public string CurrentPage { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("hasMorePages")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public bool HasMorePages { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("nextPage")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string NextPage { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("perPage")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public int PerPage { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("previousPage")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string PreviousPage { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("messages")]
|
|
|
|
|
|
public OwnChatMessage[] Messages { get; set; }
|
2017-09-12 14:32:34 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-06-06 10:07:34 +02:00
|
|
|
|
public class OwnChatMessage
|
2017-09-12 14:32:34 +02:00
|
|
|
|
{
|
2024-06-06 10:07:34 +02:00
|
|
|
|
[JsonProperty("id")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public long Id { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("text")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string Text { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("file")]
|
2017-09-12 14:32:34 +02:00
|
|
|
|
public string File { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
2026-03-23 16:11:06 +01:00
|
|
|
|
[JsonProperty("file_protected")]
|
|
|
|
|
|
public string FileProtected { get; set; }
|
|
|
|
|
|
|
2024-06-06 10:07:34 +02:00
|
|
|
|
[JsonProperty("original_filename")]
|
|
|
|
|
|
public string OriginalFilename { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty("smaller_image")]
|
|
|
|
|
|
public string SmallerImage { get; set; }
|
2020-04-17 13:01:23 +02:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty("file_size")]
|
|
|
|
|
|
public long FileSize { get; set; }
|
2024-06-06 10:07:34 +02:00
|
|
|
|
|
|
|
|
|
|
[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; }
|
2017-09-12 14:32:34 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|