Android Open Source - MordazaCrush Message






From Project

Back to project page MordazaCrush.

License

The source code is released under:

GNU General Public License

If you think the Android project MordazaCrush 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 org.confederacionpirata.mordazacrush.api;
//from  www .  j  a  va2s.c o m
import java.io.InputStream;

import android.location.Location;

/**
 * Message with the media content sent to the servers.
 */
public interface Message {

  public static final int TYPE_IMAGE_JPEG = 1;

  /**
   * Returns the type of the media content. Types are associated with some
   * supported MIME types.
   * 
   * @return See Message.TYPE_* constants.
   */
  int getType();

  /**
   * Getter to read the data of the media content.
   * 
   * @return A stream of bytes with the data.
   */
  InputStream getMedia();

  /**
   * Hashtags related to the media content. One word by hashtag, no
   * whitespaces. For example: "#DesalojoSol" will be a valid hashtag,
   * "Desalojo Sol" won't. Hash symbol is not mandatory but recommended.
   * 
   * @return An array with the hashtags. Empty array when no hashtags.
   */
  String[] getHashtag();

  /**
   * Location where the media content was taken. Always is an option from
   * user, but it could help to organize the messages on server.
   * 
   * @return An object with location properties. Null when no location.
   */
  Location getLocation();

}




Java Source Code List

org.confederacionpirata.mordazacrush.CameraPreview.java
org.confederacionpirata.mordazacrush.MCApp.java
org.confederacionpirata.mordazacrush.MainActivity.java
org.confederacionpirata.mordazacrush.api.ActionListener.java
org.confederacionpirata.mordazacrush.api.ChannelManager.java
org.confederacionpirata.mordazacrush.api.ChannelProvider.java
org.confederacionpirata.mordazacrush.api.MediaCrushMessage.java
org.confederacionpirata.mordazacrush.api.MediaCrushProvider.java
org.confederacionpirata.mordazacrush.api.Message.java
org.confederacionpirata.mordazacrush.api.QueuedMessage.java