mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
35 lines
958 B
C#
35 lines
958 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using System.Text;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class NewCodespace
|
|
{
|
|
public string MachineType { get; set; }
|
|
public string Reference { get; set; }
|
|
public CodespaceLocation? Location { get; set; }
|
|
public string DisplayName { get; set; }
|
|
|
|
public NewCodespace(Machine machineType, string reference = "main", CodespaceLocation? location = null, string displayName = null)
|
|
{
|
|
MachineType = machineType.Name;
|
|
Reference = reference;
|
|
Location = location;
|
|
DisplayName = displayName;
|
|
}
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "NewCodespace Repo: {0}", DisplayName);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|