Android Open Source - android-api Catch Media






From Project

Back to project page android-api.

License

The source code is released under:

Apache License

If you think the Android project android-api 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 2011 Catch.com, Inc.
//  //from   w w  w .java  2s .c  om
//  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.
//

package com.catchnotes.api;

import java.io.File;

/**
 * Represents a media item.
 */
public class CatchMedia {
  public String id;
  public String note_id;
  public long created_at;
  public String content_type;
  public String src;
  public long size;
  public String filename;
  public boolean voice_hint;
  public File data;
  
  public CatchMedia() {
    id = "";
    note_id = "";
    created_at = 0;
    content_type = "";
    src = "";
    size = 0;
    data = null;
    filename = "";
    voice_hint = false;
  }
  
  public String toString() {
    return "apiId=" + id + " nodeId=" + note_id + " created_at=" + created_at +
         " type=" + content_type + " src=" + src + " size=" + size +
         " filename=" + filename + " voice_hint=" + voice_hint + " data=" +
         ((data == null) ? "null" : data.getPath());
  }
}




Java Source Code List

com.android.http.multipart.ByteArrayPartSource.java
com.android.http.multipart.ByteArrayPartSource.java
com.android.http.multipart.FilePartSource.java
com.android.http.multipart.FilePartSource.java
com.android.http.multipart.FilePart.java
com.android.http.multipart.FilePart.java
com.android.http.multipart.MultipartEntity.java
com.android.http.multipart.MultipartEntity.java
com.android.http.multipart.PartBase.java
com.android.http.multipart.PartBase.java
com.android.http.multipart.PartSource.java
com.android.http.multipart.PartSource.java
com.android.http.multipart.Part.java
com.android.http.multipart.Part.java
com.android.http.multipart.StringPart.java
com.android.http.multipart.StringPart.java
com.catchnotes.api.CatchAPI.java
com.catchnotes.api.CatchAPI.java
com.catchnotes.api.CatchAccount.java
com.catchnotes.api.CatchAccount.java
com.catchnotes.api.CatchMedia.java
com.catchnotes.api.CatchMedia.java
com.catchnotes.api.CatchNoteRef.java
com.catchnotes.api.CatchNoteRef.java
com.catchnotes.api.CatchNote.java
com.catchnotes.api.CatchNote.java
com.catchnotes.api.CatchNotesXmlParser.java
com.catchnotes.api.CatchNotesXmlParser.java
com.catchnotes.api.VersionedCatchHttpClient.java
com.catchnotes.api.VersionedCatchHttpClient.java
com.example.CatchApiDemo.Dashboard.java