Android Open Source - VideoExtand Upload Resp






From Project

Back to project page VideoExtand.

License

The source code is released under:

Apache License

If you think the Android project VideoExtand 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

/*
 * Copyright (C) 2014 The Android Open Source Project
 *//from  ww  w .j  a  v a  2  s .c  o m
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Auther?yinglovezhuzhu@gmail.com
 * File: UploadResp.java
 * Date?2014?1?3?
 * Version?v1.0
 */  
package com.yuninfo.videoextand.bean;

/**
 * ???
 * @author yinglovezhuzhu@gmail.com
 */
public class UploadResp {
  
  private UploadData video;
  private UploadData img;

  /**
   * @return the video
   */
  public UploadData getVideo() {
    return video;
  }


  /**
   * @param video the video to set
   */
  public void setVideo(UploadData video) {
    this.video = video;
  }


  /**
   * @return the img
   */
  public UploadData getImg() {
    return img;
  }


  /**
   * @param img the img to set
   */
  public void setImg(UploadData img) {
    this.img = img;
  }


  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    return "UploadResp [video=" + video + ", img=" + img + "]";
  }


  public static class UploadData {
    private int rect;      //0?????????1????2?????
    private String msg;      //?????????????
    private String fileName;    //?????   ??
    private String fileType;  //????  ??
    private float fileSize;    //??????KB????
    private String shortUrl;  //????????????
    private String longUrl; //?????
    private boolean isSuccess;
    /**
     * @return the rect
     */
    public int getRect() {
      return rect;
    }
    /**
     * @param rect the rect to set
     */
    public void setRect(int rect) {
      this.rect = rect;
    }
    /**
     * @return the msg
     */
    public String getMsg() {
      return msg;
    }
    /**
     * @param msg the msg to set
     */
    public void setMsg(String msg) {
      this.msg = msg;
    }
    /**
     * @return the fileName
     */
    public String getFileName() {
      return fileName;
    }
    /**
     * @param fileName the fileName to set
     */
    public void setFileName(String fileName) {
      this.fileName = fileName;
    }
    /**
     * @return the fileType
     */
    public String getFileType() {
      return fileType;
    }
    /**
     * @param fileType the fileType to set
     */
    public void setFileType(String fileType) {
      this.fileType = fileType;
    }
    /**
     * @return the fileSize
     */
    public float getFileSize() {
      return fileSize;
    }
    /**
     * @param fileSize the fileSize to set
     */
    public void setFileSize(float fileSize) {
      this.fileSize = fileSize;
    }
    /**
     * @return the shortUrl
     */
    public String getShortUrl() {
      return shortUrl;
    }
    /**
     * @param shortUrl the shortUrl to set
     */
    public void setShortUrl(String shortUrl) {
      this.shortUrl = shortUrl;
    }
    /**
     * @return the longUrl
     */
    public String getLongUrl() {
      return longUrl;
    }
    /**
     * @param longUrl the longUrl to set
     */
    public void setLongUrl(String longUrl) {
      this.longUrl = longUrl;
    }
    /**
     * @return the isSuccess
     */
    public boolean isSuccess() {
      return isSuccess;
    }
    /**
     * @param isSuccess the isSuccess to set
     */
    public void setSuccess(boolean isSuccess) {
      this.isSuccess = isSuccess;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
      return "UploadData [rect=" + rect + ", msg=" + msg + ", fileName="
          + fileName + ", fileType=" + fileType + ", fileSize="
          + fileSize + ", shortUrl=" + shortUrl + ", longUrl="
          + longUrl + ", isSuccess=" + isSuccess + "]";
    }
  }
}




Java Source Code List

com.example.androidtest.MainActivity.java
com.yuninfo.videoextand.BaseActivity.java
com.yuninfo.videoextand.Config.java
com.yuninfo.videoextand.ReadCardActivity.java
com.yuninfo.videoextand.SendCardActivity.java
com.yuninfo.videoextand.bean.CommonReq.java
com.yuninfo.videoextand.bean.ReadVideoResp.java
com.yuninfo.videoextand.bean.SendVideoResp.java
com.yuninfo.videoextand.bean.UploadReq.java
com.yuninfo.videoextand.bean.UploadResp.java
com.yuninfo.videoextand.player.VideoPlayerActivity.java
com.yuninfo.videoextand.recorder.RecorderActivity.java
com.yuninfo.videoextand.uploader.ProgressListener.java
com.yuninfo.videoextand.uploader.ProgressMultipartEntity.java
com.yuninfo.videoextand.uploader.ProgressOutputStream.java
com.yuninfo.videoextand.uploader.UploadHandler.java
com.yuninfo.videoextand.uploader.UploadThread.java
com.yuninfo.videoextand.utils.BeanRefUtil.java
com.yuninfo.videoextand.utils.DateUtil.java
com.yuninfo.videoextand.utils.FileUtil.java
com.yuninfo.videoextand.utils.HttpUtil.java
com.yuninfo.videoextand.utils.LogUtil.java
com.yuninfo.videoextand.utils.StringUtil.java
com.yuninfo.videoextand.widget.CustomPopupWindow.java
com.yuninfo.videoextand.widget.TitleBar.java
com.yuninfo.videoextand.widget.dialog.MenuDialog.java