GET | /Doctorbrowser/Category/GetMedicalCategories |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class MedicalCategoriesRequest
{
public Integer categoryId = null;
public String slug = null;
public Integer start_from = null;
public Integer limit = null;
public String Culture = null;
public Integer getCategoryId() { return categoryId; }
public MedicalCategoriesRequest setCategoryId(Integer value) { this.categoryId = value; return this; }
public String getSlug() { return slug; }
public MedicalCategoriesRequest setSlug(String value) { this.slug = value; return this; }
public Integer getStartFrom() { return start_from; }
public MedicalCategoriesRequest setStartFrom(Integer value) { this.start_from = value; return this; }
public Integer getLimit() { return limit; }
public MedicalCategoriesRequest setLimit(Integer value) { this.limit = value; return this; }
public String getCulture() { return Culture; }
public MedicalCategoriesRequest setCulture(String value) { this.Culture = value; return this; }
}
public static class MedicalCategoriesResponse
{
public Integer totalRecords = null;
public ArrayList<MedicalCategoryDto> MedicalCategories = new ArrayList<MedicalCategoryDto>();
public Integer getTotalRecords() { return totalRecords; }
public MedicalCategoriesResponse setTotalRecords(Integer value) { this.totalRecords = value; return this; }
public ArrayList<MedicalCategoryDto> getMedicalCategories() { return MedicalCategories; }
public MedicalCategoriesResponse setMedicalCategories(ArrayList<MedicalCategoryDto> value) { this.MedicalCategories = value; return this; }
}
public static class MedicalCategoryDto
{
public Integer Id = null;
public Integer Order = null;
public String Icon = null;
public String Title_ar = null;
public String Title_en = null;
public String Title_tr = null;
public String Description = null;
public String Description_en = null;
public String Description_ar = null;
public String Description_tr = null;
public ArrayList<DoctorListingDto> Doctors = new ArrayList<DoctorListingDto>();
public String Slug = null;
public String CategoryLogo = null;
public String CategoryLogoThumbnail = null;
public String Title = null;
public IList<MedicalSpecialtyDto> Specialties = null;
public String WebSlugName = null;
public Integer getId() { return Id; }
public MedicalCategoryDto setId(Integer value) { this.Id = value; return this; }
public Integer getOrder() { return Order; }
public MedicalCategoryDto setOrder(Integer value) { this.Order = value; return this; }
public String getIcon() { return Icon; }
public MedicalCategoryDto setIcon(String value) { this.Icon = value; return this; }
public String getTitleAr() { return Title_ar; }
public MedicalCategoryDto setTitleAr(String value) { this.Title_ar = value; return this; }
public String getTitleEn() { return Title_en; }
public MedicalCategoryDto setTitleEn(String value) { this.Title_en = value; return this; }
public String getTitleTr() { return Title_tr; }
public MedicalCategoryDto setTitleTr(String value) { this.Title_tr = value; return this; }
public String getDescription() { return Description; }
public MedicalCategoryDto setDescription(String value) { this.Description = value; return this; }
public String getDescriptionEn() { return Description_en; }
public MedicalCategoryDto setDescriptionEn(String value) { this.Description_en = value; return this; }
public String getDescriptionAr() { return Description_ar; }
public MedicalCategoryDto setDescriptionAr(String value) { this.Description_ar = value; return this; }
public String getDescriptionTr() { return Description_tr; }
public MedicalCategoryDto setDescriptionTr(String value) { this.Description_tr = value; return this; }
public ArrayList<DoctorListingDto> getDoctors() { return Doctors; }
public MedicalCategoryDto setDoctors(ArrayList<DoctorListingDto> value) { this.Doctors = value; return this; }
public String getSlug() { return Slug; }
public MedicalCategoryDto setSlug(String value) { this.Slug = value; return this; }
public String getCategoryLogo() { return CategoryLogo; }
public MedicalCategoryDto setCategoryLogo(String value) { this.CategoryLogo = value; return this; }
public String getCategoryLogoThumbnail() { return CategoryLogoThumbnail; }
public MedicalCategoryDto setCategoryLogoThumbnail(String value) { this.CategoryLogoThumbnail = value; return this; }
public String getTitle() { return Title; }
public MedicalCategoryDto setTitle(String value) { this.Title = value; return this; }
public IList<MedicalSpecialtyDto> getSpecialties() { return Specialties; }
public MedicalCategoryDto setSpecialties(IList<MedicalSpecialtyDto> value) { this.Specialties = value; return this; }
public String getWebSlugName() { return WebSlugName; }
public MedicalCategoryDto setWebSlugName(String value) { this.WebSlugName = value; return this; }
}
public static class DoctorListingDto
{
public Integer Id = null;
public Integer DocId = null;
public String UserName = null;
public String FirstName = null;
public String FirstName_ar = null;
public String LastName = null;
public String LastName_ar = null;
public String SpecialtyTitle_en = null;
public String SpecialtyTitle_ar = null;
public String SpecialtyTitle_tr = null;
public String CountryName_en = null;
public String CountryName_ar = null;
public String CountryName_tr = null;
public String CountryName = null;
public String CityCityName_en = null;
public String CityCityName_ar = null;
public String CityCityName_tr = null;
public String Title = null;
public String Title_en = null;
public Integer LocationCountryId = null;
public Integer LocationCityId = null;
public Integer ClassificationId = null;
public String ClassificationTitle_ar = null;
public String ClassificationTitle_en = null;
public String ClassificationTitle_tr = null;
public Integer Rating = null;
public String ProfilePic = null;
public String ProfilePicThumbnail = null;
public Boolean isPremium = null;
public Integer PrimarySpecialtyId = null;
public Integer AvailabilityId = null;
public Boolean AvailabilityAcceptsNewConsults = null;
public Boolean AvailabilityFlagWithOnlineIcon = null;
public String AvailabilityStatusColor = null;
public String AvailabilityStatusTitleDoctor_en = null;
public String AvailabilityStatusTitleDoctor_ar = null;
public String AvailabilityStatusTitleDoctor_tr = null;
public String AvailabilityStatusTitleUser_en = null;
public String AvailabilityStatusTitleUser_ar = null;
public String AvailabilityStatusTitleUser_tr = null;
public Boolean DesignateAsDoctor = null;
public String LastLoginAttempt = null;
public Boolean Featured = null;
public String CountryCultureName = null;
public String SpecialtyTitle = null;
public String CountryCountryName_en = null;
public String CountryCountryName_ar = null;
public String AvailabilityStatusTitleDoctor = null;
public String AvailabilityStatusTitleUser = null;
public Integer getId() { return Id; }
public DoctorListingDto setId(Integer value) { this.Id = value; return this; }
public Integer getDocId() { return DocId; }
public DoctorListingDto setDocId(Integer value) { this.DocId = value; return this; }
public String getUserName() { return UserName; }
public DoctorListingDto setUserName(String value) { this.UserName = value; return this; }
public String getFirstName() { return FirstName; }
public DoctorListingDto setFirstName(String value) { this.FirstName = value; return this; }
public String getFirstNameAr() { return FirstName_ar; }
public DoctorListingDto setFirstNameAr(String value) { this.FirstName_ar = value; return this; }
public String getLastName() { return LastName; }
public DoctorListingDto setLastName(String value) { this.LastName = value; return this; }
public String getLastNameAr() { return LastName_ar; }
public DoctorListingDto setLastNameAr(String value) { this.LastName_ar = value; return this; }
public String getSpecialtyTitleEn() { return SpecialtyTitle_en; }
public DoctorListingDto setSpecialtyTitleEn(String value) { this.SpecialtyTitle_en = value; return this; }
public String getSpecialtyTitleAr() { return SpecialtyTitle_ar; }
public DoctorListingDto setSpecialtyTitleAr(String value) { this.SpecialtyTitle_ar = value; return this; }
public String getSpecialtyTitleTr() { return SpecialtyTitle_tr; }
public DoctorListingDto setSpecialtyTitleTr(String value) { this.SpecialtyTitle_tr = value; return this; }
public String getCountryNameEn() { return CountryName_en; }
public DoctorListingDto setCountryNameEn(String value) { this.CountryName_en = value; return this; }
public String getCountryNameAr() { return CountryName_ar; }
public DoctorListingDto setCountryNameAr(String value) { this.CountryName_ar = value; return this; }
public String getCountryNameTr() { return CountryName_tr; }
public DoctorListingDto setCountryNameTr(String value) { this.CountryName_tr = value; return this; }
public String getCountryName() { return CountryName; }
public DoctorListingDto setCountryName(String value) { this.CountryName = value; return this; }
public String getCityCityNameEn() { return CityCityName_en; }
public DoctorListingDto setCityCityNameEn(String value) { this.CityCityName_en = value; return this; }
public String getCityCityNameAr() { return CityCityName_ar; }
public DoctorListingDto setCityCityNameAr(String value) { this.CityCityName_ar = value; return this; }
public String getCityCityNameTr() { return CityCityName_tr; }
public DoctorListingDto setCityCityNameTr(String value) { this.CityCityName_tr = value; return this; }
public String getTitle() { return Title; }
public DoctorListingDto setTitle(String value) { this.Title = value; return this; }
public String getTitleEn() { return Title_en; }
public DoctorListingDto setTitleEn(String value) { this.Title_en = value; return this; }
public Integer getLocationCountryId() { return LocationCountryId; }
public DoctorListingDto setLocationCountryId(Integer value) { this.LocationCountryId = value; return this; }
public Integer getLocationCityId() { return LocationCityId; }
public DoctorListingDto setLocationCityId(Integer value) { this.LocationCityId = value; return this; }
public Integer getClassificationId() { return ClassificationId; }
public DoctorListingDto setClassificationId(Integer value) { this.ClassificationId = value; return this; }
public String getClassificationTitleAr() { return ClassificationTitle_ar; }
public DoctorListingDto setClassificationTitleAr(String value) { this.ClassificationTitle_ar = value; return this; }
public String getClassificationTitleEn() { return ClassificationTitle_en; }
public DoctorListingDto setClassificationTitleEn(String value) { this.ClassificationTitle_en = value; return this; }
public String getClassificationTitleTr() { return ClassificationTitle_tr; }
public DoctorListingDto setClassificationTitleTr(String value) { this.ClassificationTitle_tr = value; return this; }
public Integer getRating() { return Rating; }
public DoctorListingDto setRating(Integer value) { this.Rating = value; return this; }
public String getProfilePic() { return ProfilePic; }
public DoctorListingDto setProfilePic(String value) { this.ProfilePic = value; return this; }
public String getProfilePicThumbnail() { return ProfilePicThumbnail; }
public DoctorListingDto setProfilePicThumbnail(String value) { this.ProfilePicThumbnail = value; return this; }
public Boolean getIsPremium() { return isPremium; }
public DoctorListingDto setIsPremium(Boolean value) { this.isPremium = value; return this; }
public Integer getPrimarySpecialtyId() { return PrimarySpecialtyId; }
public DoctorListingDto setPrimarySpecialtyId(Integer value) { this.PrimarySpecialtyId = value; return this; }
public Integer getAvailabilityId() { return AvailabilityId; }
public DoctorListingDto setAvailabilityId(Integer value) { this.AvailabilityId = value; return this; }
public Boolean isAvailabilityAcceptsNewConsults() { return AvailabilityAcceptsNewConsults; }
public DoctorListingDto setAvailabilityAcceptsNewConsults(Boolean value) { this.AvailabilityAcceptsNewConsults = value; return this; }
public Boolean isAvailabilityFlagWithOnlineIcon() { return AvailabilityFlagWithOnlineIcon; }
public DoctorListingDto setAvailabilityFlagWithOnlineIcon(Boolean value) { this.AvailabilityFlagWithOnlineIcon = value; return this; }
public String getAvailabilityStatusColor() { return AvailabilityStatusColor; }
public DoctorListingDto setAvailabilityStatusColor(String value) { this.AvailabilityStatusColor = value; return this; }
public String getAvailabilityStatusTitleDoctorEn() { return AvailabilityStatusTitleDoctor_en; }
public DoctorListingDto setAvailabilityStatusTitleDoctorEn(String value) { this.AvailabilityStatusTitleDoctor_en = value; return this; }
public String getAvailabilityStatusTitleDoctorAr() { return AvailabilityStatusTitleDoctor_ar; }
public DoctorListingDto setAvailabilityStatusTitleDoctorAr(String value) { this.AvailabilityStatusTitleDoctor_ar = value; return this; }
public String getAvailabilityStatusTitleDoctorTr() { return AvailabilityStatusTitleDoctor_tr; }
public DoctorListingDto setAvailabilityStatusTitleDoctorTr(String value) { this.AvailabilityStatusTitleDoctor_tr = value; return this; }
public String getAvailabilityStatusTitleUserEn() { return AvailabilityStatusTitleUser_en; }
public DoctorListingDto setAvailabilityStatusTitleUserEn(String value) { this.AvailabilityStatusTitleUser_en = value; return this; }
public String getAvailabilityStatusTitleUserAr() { return AvailabilityStatusTitleUser_ar; }
public DoctorListingDto setAvailabilityStatusTitleUserAr(String value) { this.AvailabilityStatusTitleUser_ar = value; return this; }
public String getAvailabilityStatusTitleUserTr() { return AvailabilityStatusTitleUser_tr; }
public DoctorListingDto setAvailabilityStatusTitleUserTr(String value) { this.AvailabilityStatusTitleUser_tr = value; return this; }
public Boolean isDesignateAsDoctor() { return DesignateAsDoctor; }
public DoctorListingDto setDesignateAsDoctor(Boolean value) { this.DesignateAsDoctor = value; return this; }
public String getLastLoginAttempt() { return LastLoginAttempt; }
public DoctorListingDto setLastLoginAttempt(String value) { this.LastLoginAttempt = value; return this; }
public Boolean isFeatured() { return Featured; }
public DoctorListingDto setFeatured(Boolean value) { this.Featured = value; return this; }
public String getCountryCultureName() { return CountryCultureName; }
public DoctorListingDto setCountryCultureName(String value) { this.CountryCultureName = value; return this; }
public String getSpecialtyTitle() { return SpecialtyTitle; }
public DoctorListingDto setSpecialtyTitle(String value) { this.SpecialtyTitle = value; return this; }
public String getCountryCountryNameEn() { return CountryCountryName_en; }
public DoctorListingDto setCountryCountryNameEn(String value) { this.CountryCountryName_en = value; return this; }
public String getCountryCountryNameAr() { return CountryCountryName_ar; }
public DoctorListingDto setCountryCountryNameAr(String value) { this.CountryCountryName_ar = value; return this; }
public String getAvailabilityStatusTitleDoctor() { return AvailabilityStatusTitleDoctor; }
public DoctorListingDto setAvailabilityStatusTitleDoctor(String value) { this.AvailabilityStatusTitleDoctor = value; return this; }
public String getAvailabilityStatusTitleUser() { return AvailabilityStatusTitleUser; }
public DoctorListingDto setAvailabilityStatusTitleUser(String value) { this.AvailabilityStatusTitleUser = value; return this; }
}
public static class MedicalSpecialtyDto
{
public Integer Id = null;
public String Title_ar = null;
public String Title_en = null;
public String Title_tr = null;
public String Code = null;
public Integer ParentId = null;
public String Title = null;
public Integer CategoryId = null;
public String WebSlugName = null;
public Integer getId() { return Id; }
public MedicalSpecialtyDto setId(Integer value) { this.Id = value; return this; }
public String getTitleAr() { return Title_ar; }
public MedicalSpecialtyDto setTitleAr(String value) { this.Title_ar = value; return this; }
public String getTitleEn() { return Title_en; }
public MedicalSpecialtyDto setTitleEn(String value) { this.Title_en = value; return this; }
public String getTitleTr() { return Title_tr; }
public MedicalSpecialtyDto setTitleTr(String value) { this.Title_tr = value; return this; }
public String getCode() { return Code; }
public MedicalSpecialtyDto setCode(String value) { this.Code = value; return this; }
public Integer getParentId() { return ParentId; }
public MedicalSpecialtyDto setParentId(Integer value) { this.ParentId = value; return this; }
public String getTitle() { return Title; }
public MedicalSpecialtyDto setTitle(String value) { this.Title = value; return this; }
public Integer getCategoryId() { return CategoryId; }
public MedicalSpecialtyDto setCategoryId(Integer value) { this.CategoryId = value; return this; }
public String getWebSlugName() { return WebSlugName; }
public MedicalSpecialtyDto setWebSlugName(String value) { this.WebSlugName = value; return this; }
}
}
Java MedicalCategoriesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Doctorbrowser/Category/GetMedicalCategories HTTP/1.1 Host: api-demo-1.cura.healthcare Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { totalRecords: 0, MedicalCategories: [ { Id: 0, Order: 0, Icon: String, Title_ar: String, Title_en: String, Title_tr: String, Description: String, Description_en: String, Description_ar: String, Description_tr: String, Doctors: [ { Id: 0, DocId: 0, UserName: String, FirstName: String, FirstName_ar: String, LastName: String, LastName_ar: String, SpecialtyTitle_en: String, SpecialtyTitle_ar: String, SpecialtyTitle_tr: String, CountryName_en: String, CountryName_ar: String, CountryName_tr: String, CountryName: String, CityCityName_en: String, CityCityName_ar: String, CityCityName_tr: String, Title: String, Title_en: String, LocationCountryId: 0, LocationCityId: 0, ClassificationId: 0, ClassificationTitle_ar: String, ClassificationTitle_en: String, ClassificationTitle_tr: String, Rating: 0, ProfilePic: String, ProfilePicThumbnail: String, isPremium: False, PrimarySpecialtyId: 0, AvailabilityId: 0, AvailabilityAcceptsNewConsults: False, AvailabilityFlagWithOnlineIcon: False, AvailabilityStatusColor: String, AvailabilityStatusTitleDoctor_en: String, AvailabilityStatusTitleDoctor_ar: String, AvailabilityStatusTitleDoctor_tr: String, AvailabilityStatusTitleUser_en: String, AvailabilityStatusTitleUser_ar: String, AvailabilityStatusTitleUser_tr: String, DesignateAsDoctor: False, LastLoginAttempt: String, Featured: False, CountryCultureName: String, SpecialtyTitle: String, CountryCountryName_en: String, CountryCountryName_ar: String, AvailabilityStatusTitleDoctor: String, AvailabilityStatusTitleUser: String } ], Slug: String, CategoryLogo: String, CategoryLogoThumbnail: String, Title: String, WebSlugName: String } ] }