Exemplo n.º 1
0
 public ApiVersionDefinition ToDefinition(Project expandedProject = null)
 {
     return(new ApiVersionDefinition
     {
         Id = IdEngine.GetApiVersionId(this.ProjectId, this.ApiVersionValue),
         ProjectId = IdEngine.GetProjectId(this.ProjectId),
         Project = expandedProject != null?expandedProject.ToDefinition() : null,
                       ApiVersion = this.ApiVersionValue,
                       Deprecated = this.Deprecated,
                       Description = this.Description
     });
 }
Exemplo n.º 2
0
 public ProjectDefinition ToDefinition(ApiVersionDefinition[] apiVersions = null)
 {
     return(new ProjectDefinition
     {
         ContactEmail = this.ContactEmail,
         Description = this.Description,
         DisplayName = this.DisplayName,
         Name = this.ProjectId,
         Id = IdEngine.GetProjectId(this.ProjectId),
         ApiVersions = apiVersions,
         Host = this.Host,
         BasePath = this.BasePath,
         Schemes = this.Schemes
     });
 }