Skip to content

Instantly share code, notes, and snippets.

@maor365scores
Created July 8, 2025 08:34
Show Gist options
  • Save maor365scores/039b6b0af528bc34ba6c8a47800491cb to your computer and use it in GitHub Desktop.
Save maor365scores/039b6b0af528bc34ba6c8a47800491cb to your computer and use it in GitHub Desktop.
public class UserResult
{
[BsonElement("count")]
public int Count { get; init; }
[BsonElement("groupId")]
public Guid GroupId { get; init; }
[BsonId]
[BsonElement("_id")]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; init; }
[BsonElement("lbKey")]
public LeaderBoardKey LeaderBoardKey { get; init; }
[BsonElement("lose")]
public int Lost { get; init; }
[BsonElement("profit")]
public decimal Profit { get; init; }
[BsonElement("updatedAt")]
public DateTime UpdatedAt { get; set; }
[BsonElement("userId")]
public Guid UserId { get; init; }
/// Represents the unique identifier for a user's profile.
/// This property may be nullable, indicating the absence of a specific profile association.
/// null=hidden
[BsonElement("profileId")]
public Guid? ProfileId { get; set; } //
[BsonElement("won")]
public int Won { get; init; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment