19 lines
499 B
C#
19 lines
499 B
C#
|
using SharpChat.Users.Remote;
|
|||
|
using System.Linq;
|
|||
|
using System.Text.Json.Serialization;
|
|||
|
|
|||
|
namespace SharpChat.DataProvider.Misuzu.Users {
|
|||
|
public class MisuzuUserBumpInfo {
|
|||
|
[JsonPropertyName(@"id")]
|
|||
|
public long UserId { get; }
|
|||
|
|
|||
|
[JsonPropertyName(@"ip")]
|
|||
|
public string UserIP { get; }
|
|||
|
|
|||
|
public MisuzuUserBumpInfo(UserBumpInfo ubi) {
|
|||
|
UserId = ubi.User.UserId;
|
|||
|
UserIP = ubi.Sessions.First().RemoteAddress.ToString();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|