vip.model.ts 709 Bytes
import {VipProduct} from './vip-product.model';
import {User} from '../../../shared/models/user.model';
import gql from 'graphql-tag';
import {VipProductDelivery} from './vip-product-delivery.model';
/**
 * Created by tuukka on 04/02/17.
 */


export class Vip {


  static fragments = gql`
    fragment vipPrimitives on Vip {
      created
      description
      id
      shortdescr
    }
  `;

  id: number;
  description: string;
  shortdescr: string;
  created: Date;
  eventuserId: number;
  creatorId: number;
  host: User;

  products: VipProduct[];


  constructor() {
  }

}

export const VipFragmentsCombined = gql`
  ${Vip.fragments}
  ${VipProduct.fragments}
  ${VipProductDelivery.fragments}
`;