Files
tgstation-server/TGServiceInterface/PullRequestInfo.cs
T
Cyberboss 3137be7abb Massive sanity reorganization of project structure
Overall:
- Removed all 'TG' prefixes on classes and enums
Service:
- TGStationServer => ServerInstance
- TGServerService => Service
- Moved all ServerInstance partial classes to a subfolder
- Moved ChatProvider classes, delegate, and interface to a namespace
- Moved EventID and ChatMessageType to their own .cs files
- Moved SanitizeTopicString to Program
- ServerService.cs => Service.cs
- Fixed ProjectInstaller being in it's own namespace instead of
TGServerService
Interface:
- Moved ExitCode enum to Command class
- Moved all components to a namespace
- Moved all component enums to Enumerations.cs
- DDInteropCallHolder => DreamDaemonBridge
- Move PullRequestInfo and DreamDaemonBridge to their own .cs files
- Changes the type of ChannelFactory cache from Dictionary<Type,
ChannelFactory> to IDictionary<Type, ChannelFactory>
2017-10-20 14:00:09 -04:00

48 lines
1.1 KiB
C#

using System.Runtime.Serialization;
namespace TGServiceInterface
{
/// <summary>
/// Information about a pull request
/// </summary>
[DataContract]
public sealed class PullRequestInfo
{
/// <summary>
/// Construct a <see cref="PullRequestInfo"/>
/// </summary>
/// <param name="number">The PR number</param>
/// <param name="author">The PR's author</param>
/// <param name="title">The PR's title</param>
/// <param name="sha">The commit the PR was merged locally at</param>
public PullRequestInfo(int number, string author, string title, string sha)
{
Number = number;
Author = author;
Title = title;
Sha = sha;
}
/// <summary>
/// The PR number
/// </summary>
[DataMember]
public int Number { get; private set; }
/// <summary>
/// The PR's author
/// </summary>
[DataMember]
public string Author { get; private set; }
/// <summary>
/// The PR's title
/// </summary>
[DataMember]
public string Title { get; private set; }
/// <summary>
/// The commit the PR was merged locally at
/// </summary>
[DataMember]
public string Sha { get; private set; }
}
}