Exemplo n.º 1
0
 /// <summary>
 /// Convert the <see cref="CompileJob"/> to it's API form
 /// </summary>
 /// <returns>A new <see cref="Api.Models.CompileJob"/></returns>
 public Api.Models.CompileJob ToApi() => new Api.Models.CompileJob
 {
     DirectoryName       = DirectoryName,
     DmeName             = DmeName,
     Id                  = Id,
     Job                 = Job.ToApi(),
     Output              = Output,
     RevisionInformation = RevisionInformation.ToApi(),
     ByondVersion        = Version.Parse(ByondVersion)
 };
Exemplo n.º 2
0
 /// <summary>
 /// Convert the <see cref="CompileJob"/> to it's API form
 /// </summary>
 /// <returns>A new <see cref="Api.Models.CompileJob"/></returns>
 public Api.Models.CompileJob ToApi() => new Api.Models.CompileJob
 {
     DirectoryName        = DirectoryName,
     DmeName              = DmeName,
     Id                   = Id,
     Job                  = Job.ToApi(),
     Output               = Output,
     RevisionInformation  = RevisionInformation.ToApi(),
     ByondVersion         = Version.Parse(ByondVersion),
     MinimumSecurityLevel = MinimumSecurityLevel,
     DMApiVersion         = DMApiVersion
 };
Exemplo n.º 3
0
 /// <inheritdoc />
 public CompileJobResponse ToApi() => new CompileJobResponse
 {
     DirectoryName        = DirectoryName,
     DmeName              = DmeName,
     Id                   = Id,
     Job                  = Job.ToApi(),
     Output               = Output,
     RevisionInformation  = RevisionInformation.ToApi(),
     ByondVersion         = Version.Parse(ByondVersion),
     MinimumSecurityLevel = MinimumSecurityLevel,
     DMApiVersion         = DMApiVersion,
     RepositoryOrigin     = RepositoryOrigin != null ? new Uri(RepositoryOrigin) : null,
 };