Android Open Source - FrameLite Ret Result






From Project

Back to project page FrameLite.

License

The source code is released under:

GNU General Public License

If you think the Android project FrameLite 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.miku.framelite.api;
//w  w  w  .  j a v  a  2  s.  c  o m
public class RetResult<T> {
  
  private static final int RET_BASE=2014;
  public static final int RET_SUCC=RET_BASE+1;
  public static final int RET_ERROR=RET_BASE+2;
  public static final int RET_ERROR_CANCEL=RET_BASE+3;
  public static final int RET_ERROR_TIMEOUT=RET_BASE+4;
  public static final int RET_ERROR_UNKNOWN=RET_BASE+5;
  
  
  
  private T retObj;
  
  private int retCode=RET_ERROR;
  
  private int arg1,arg2;
  
  private String msg;

  public T getRetObj() {
    return retObj;
  }

  public void setRetObj(T retObj) {
    this.retObj = retObj;
  }

  public int getRetCode() {
    return retCode;
  }
  
  public boolean isSucc(){
    return retCode==RET_SUCC;
  }

  public void setRetCode(int retCode) {
    this.retCode = retCode;
  }

  public int getArg1() {
    return arg1;
  }

  public void setArg1(int arg1) {
    this.arg1 = arg1;
  }

  public int getArg2() {
    return arg2;
  }

  public void setArg2(int arg2) {
    this.arg2 = arg2;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
  
  public void copyFrom(RetResult<T> another){
    this.arg1=another.arg1;
    this.arg2=another.arg2;
    this.msg=another.msg;
    this.retObj=another.retObj;
    this.retCode=another.retCode;
  }
  
  public void copyTo(RetResult<T> another){
    another.arg1=this.arg1;
    another.arg2=this.arg2;
    another.msg=this.msg;
    another.retObj=this.retObj;
    another.retCode=this.retCode;
  }

}




Java Source Code List

com.miku.framelite.FrameApplication.java
com.miku.framelite.FrameBaseActivity.java
com.miku.framelite.FrameOrmBaseActivity.java
com.miku.framelite.adapter.FrameBaseAdapter.java
com.miku.framelite.annotations.ViewInject.java
com.miku.framelite.api.BaseRequest.java
com.miku.framelite.api.IRequest.java
com.miku.framelite.api.RetResult.java
com.miku.framelite.api.core.Executor.java
com.miku.framelite.api.database.AbstractDatabaseRequest.java
com.miku.framelite.api.database.AbstractOrmDatabaseRequest.java
com.miku.framelite.api.database.DatabaseQueryRequest.java
com.miku.framelite.api.database.DatabaseType.java
com.miku.framelite.api.http.AbstractHttpRequest.java
com.miku.framelite.api.http.HttpStringGetRequest.java
com.miku.framelite.api.http.HttpStringPostRequest.java
com.miku.framelite.api.http.HttpType.java
com.miku.framelite.api.webservice.AbstractWebServiceRequest.java
com.miku.framelite.api.webservice.WebServiceConnectionSE.java
com.miku.framelite.api.webservice.WebServiceHttpTransportSE.java
com.miku.framelite.api.webservice.WebServiceJsonRequest.java
com.miku.framelite.api.webservice.WebServiceStringRequest.java
com.miku.framelite.httpx.IDownloadHandler.java
com.miku.framelite.httpx.IHttpX.java
com.miku.framelite.httpx.core.DownloadHandler.java
com.miku.framelite.httpx.core.HttpX.java
com.miku.framelite.services.CrashHandler.java
com.miku.framelite.utils.BitmapUtils.java
com.miku.framelite.utils.DateUtils.java
com.miku.framelite.utils.DimensionUtils.java
com.miku.framelite.utils.EncryptionUtils.java
com.miku.framelite.utils.HttpUtils.java
com.miku.framelite.utils.Log.java
com.miku.framelite.utils.TelePhoneUtils.java
com.miku.framelite.utils.ViewUtils.java