Sha256: 87a355c806c2b1afc67604e85c405ce26c2a306adf66559e3d8d0845c3c4260f

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

@namespace("Switchboard")

protocol Lawyer {

  record LawyerSpecialty {
    string name;
    int percent;
  }

  record BrowseLink {
    /** type of url: profile, contact **/
    string type;
    /** actual url **/
    string url;
  }

  /** The main class for this protocol */
  record Lawyer {
    /** The primary key */
    int id;

    /** name */
    string firstname;
    string middlename;
    string lastname;
    string suffix;
    
    /** Lawyer's alternative names **/
    array<string> aliases;
    
    /** whether the lawyer is Avvo Pro **/
    boolean avvo_pro;

    /** Avvo Rating (Scale of 1-10) */
    float avvo_rating;
    
    /** Number of reviews the average is based upon */
    int client_review_count;
    
    /** Average client review score (Scale of 1-5) */
    float client_review_score;

    /** Url to their full-size headshot photo */
    string headshot_url;
    
    /** year licensed since **/
    int licensed_since;
    
    /** Avvo browsing links **/
    array<BrowseLink> browse_links;

    /** Lawyer's bio **/
    string bio;
    

    /** List of specialties this lawyer practices */
    array<LawyerSpecialty> lawyer_specialties;

  }

  /** Look up many lawyers in bulk */
  array<Lawyer> index();

  /** Look up a single lawyer by id */
  array<Lawyer> show(int id);

  /** Look up many lawyers in bulk */
  array<Lawyer> search();
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/4/source/lawyer.avdl