You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
106 lines
1.9 KiB
C#
106 lines
1.9 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using Amazon.S3.Model;
|
|
using HordeServer.Api;
|
|
using MongoDB.Bson;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HordeServer.Models
|
|
{
|
|
/// <summary>
|
|
/// Metadata for a particular user
|
|
/// </summary>
|
|
public interface IUgsUserData
|
|
{
|
|
/// <summary>
|
|
/// The user name
|
|
/// </summary>
|
|
string User { get; }
|
|
|
|
/// <summary>
|
|
/// Time that this change was synced
|
|
/// </summary>
|
|
public long? SyncTime { get; }
|
|
|
|
/// <summary>
|
|
/// State of the user
|
|
/// </summary>
|
|
public UgsUserVote Vote { get; }
|
|
|
|
/// <summary>
|
|
/// Whether the change is starred
|
|
/// </summary>
|
|
bool Starred { get; }
|
|
|
|
/// <summary>
|
|
/// Whether the change is under investigation
|
|
/// </summary>
|
|
bool Investigating { get; }
|
|
|
|
/// <summary>
|
|
/// Comment text
|
|
/// </summary>
|
|
string? Comment { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Metadata for a badge
|
|
/// </summary>
|
|
public interface IUgsBadgeData
|
|
{
|
|
/// <summary>
|
|
/// The badge name
|
|
/// </summary>
|
|
string Name { get; }
|
|
|
|
/// <summary>
|
|
/// The URL to open when the badge is clicked
|
|
/// </summary>
|
|
Uri? Url { get; }
|
|
|
|
/// <summary>
|
|
/// State of the badge
|
|
/// </summary>
|
|
UgsBadgeState State { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Metadata for a particular changelist and project
|
|
/// </summary>
|
|
public interface IUgsMetadata
|
|
{
|
|
/// <summary>
|
|
/// The changelist number
|
|
/// </summary>
|
|
int Change { get; }
|
|
|
|
/// <summary>
|
|
/// Stream for the metadata
|
|
/// </summary>
|
|
string Stream { get; }
|
|
|
|
/// <summary>
|
|
/// The project identifier
|
|
/// </summary>
|
|
string Project { get; }
|
|
|
|
/// <summary>
|
|
/// List of user states
|
|
/// </summary>
|
|
IReadOnlyList<IUgsUserData>? Users { get; }
|
|
|
|
/// <summary>
|
|
/// List of badge states
|
|
/// </summary>
|
|
IReadOnlyList<IUgsBadgeData>? Badges { get; }
|
|
|
|
/// <summary>
|
|
/// Time that this object was last updated
|
|
/// </summary>
|
|
long UpdateTicks { get; }
|
|
}
|
|
}
|