package com.l7tech.gateway.pm2.graphql.beans.entity;

import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.objectmodel.Goid;
import io.leangen.graphql.annotations.GraphQLQuery;

public class PublishedServiceDTO {
   private final String a;
   private final String b;
   private final String c;

   public PublishedServiceDTO(PublishedService var1) {
      Goid var2 = var1.getGoid();
      this.a = var2 != null ? var2.toHexString() : null;
      this.b = var1.getName();
      this.c = var1.getRoutingUri();
   }

   @GraphQLQuery(name = "goid", description = "Unique identifier of the published service")
   public String getGoid() {
      return this.a;
   }

   @GraphQLQuery(name = "name", description = "Name of the published service")
   public String getName() {
      return this.b;
   }

   @GraphQLQuery(name = "routingUri", description = "Routing URI of the published service")
   public String getRoutingUri() {
      return this.c;
   }
}
