Android Open Source - QBWebserviceDemo---Android Q B Api Constants






From Project

Back to project page QBWebserviceDemo---Android.

License

The source code is released under:

Copyright (c) 2011 QBurst, http://qburst.com/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redi...

If you think the Android project QBWebserviceDemo---Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.qburst.qbwebservice.api;
//from   w w  w . ja v  a 2 s  .c o  m
public interface QBApiConstants {
  public static final String kNetworkExceptionKey = "NETWORK_EXCEPTION";
  public static final String kTimeOutExceptionKey = "TIMEOUT_EXCEPTION";

  // Request Time out param
  public static final int kRequestTimeOutInMills = 20000;

  // Api ID's
  public static final int kLoginWebServiceId = 0;
  public static final int kCategoryWebServiceId = 1;
  public static final int kSubCategoryWebServiceId = 2;
  public static final int kProductsWebServiceId = 3;
  public static final int kProductsDetailsWebServiceId = 4;
  public static final int kSearchWebServiceId = 5;
  public static final int kRegisterWebServiceId = 6;
  public static final int kProductGalleryServiceId = 8;
  public static final int kReviewWebServiceId = 7;

  // API Prefixes
  public static final String kBaseURL = "http://10.1.3.99:8100/mcommercewebservices";

  // API PostFixes;
  public static final String kSubCategoriesURL = "/subcategories/";
  public static final String kCategoriesURL = "/categories/";
  public static final String kProductsURL = "/products/";
  public static final String kSearchURL = "/search/";
  public static final String kLoginURL = "/login/";
  public static final String kProductDetailURL = "/product_detail/";
  public static final String kRegisterURL = "/register/";
  public static final String kMainCategoriesURL = "/homescreendata/";
  public static final String kGalleryURL = "/productgallery/";
  public static final String kReviewURL = "/reviews/";

  // HTTP Status Code Constants
  public static final String kHttpStatusKey = "HttpStatus";
  public static final int kHttpStatusOK = 200;
  public static final int kHttpStatusCreated = 201;
  public static final String kAuthHeaderKey = "Authorization";

  // Base Web Service
  public static final String kApiSuccessMsgKey = "API_SUCCESS";
  public static final String kApiFailMsgKey = "API_FAIL";
  public static final String kResponseBeanKey = "Response Bean";
  public static final String kTimeoutError = "Server_Error";
  public static final String kNetworkError = "Network_Error";

}




Java Source Code List

com.qburst.qbwebservice.QBWebserviceDemoActivity.java
com.qburst.qbwebservice.api.QBApiConstants.java
com.qburst.qbwebservice.api.QBBaseWebService.java
com.qburst.qbwebservice.api.QBTestApi.java
com.qburst.qbwebservice.api.QMApiConstants.java
com.qburst.qbwebservice.app.QBWebserviceDemoApp.java
com.qburst.qbwebservice.listeners.QBApiResponseListener.java
com.qburst.qbwebservice.listeners.QBWebserviceListener.java
com.qburst.qbwebservice.models.QBBaseBean.java
com.qburst.qbwebservice.models.QBRequestBean.java
com.qburst.qbwebservice.models.QBResponseBean.java
com.qburst.qbwebservice.models.QBWebserviceModel.java
com.qburst.qbwebservice.utilities.QBUtility.java