import { ObjectType, Field } from 'type-graphql';
import { BaseResponse } from '../../entities/baseResponse';
import {Agency} from '../agency/model'

@ObjectType()
export class DeleteAgencyOutput extends BaseResponse {
  constructor(data: any) {
    super();
    this.message = data.message;
    this.success = data.success;
    this.description = data.description;
  }

}

@ObjectType()
export class AddAgencyOutput extends BaseResponse {
  constructor(data: any) {
    super();
    this.message = data.message;
    this.success = data.success;
    this.description = data.description;
    this.data = data.data;
  }

  data?: Agency;

}

@ObjectType()
export class GetUserAgenciesOutput extends BaseResponse {
  constructor(data: any) {
    super();
    this.message = data.message;
    this.success = data.success;
    this.description = data.description;
    this.data = data.data;
  }

  data?: Agency[];

}

