Sha256: 745477f811136ed5791ab8b566386ee711b6d24ad9694bdd8da16d00e9c2e999

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

@namespace("Switchboard")

protocol PackageDetail {

  /** The main class for this protocol */
  record Package {
    /** The primary key */
    int id;
    string name;
    string short_description;
    boolean call;
    int call_duration_in_minutes;
    boolean document;
    int max_document_length_in_pages;
    boolean claim_game;
    boolean offline;
    int specialty_id;
    string how_it_works;
    string whats_included;
    string whats_not_included;
    string micro_description;
    string right_for_you_if;
    string hero_image_url;
  }

  record PackageFetchOption {
    /** Which page of records to fetch */
    int page = 1;

    /** How many records per page */
    int per_page = 10;

    int specialty_id;
  }

  /** Returns a list of Packages */
  array<Package> index(PackageFetchOption options);

  /** Return a single Package */
  array<Package> show(int id);
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/3/source/package_detail.avdl
switchboard-contract-1.9.5 contracts/mobile/source/package_detail.avdl