Android Open Source - HotSpot_Android Message






From Project

Back to project page HotSpot_Android.

License

The source code is released under:

GNU General Public License

If you think the Android project HotSpot_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.ticknardif.hotspot;
//from w  w  w  .j  a  v a  2 s .c  o  m
import java.util.Date;

public class Message {


    private int m_id;
    private String DisplayName;
    private int Room_id;
    private int User_id;
    private Date TimeStamp;
    private String Message;
    private boolean success;
    boolean owned;

    public Message(String displayName, int m_id, int room_id, int user_id, Date timeStamp, String message, boolean success) {
        this.m_id = m_id;
        Room_id = room_id;
        User_id = user_id;
        TimeStamp = timeStamp;
        Message = message;
        this.success = success;
        this.DisplayName = displayName;

        owned = false;
    }

    @Override
    public String toString() {
        return "Message{" +
                "Name: " + DisplayName +
                "m_id=" + m_id +
                ", Room_id=" + Room_id +
                ", User_id=" + User_id +
                ", TimeStamp=" + TimeStamp +
                ", Message='" + Message + '\'' +
                ", success=" + success +
                '}';
    }

    public int getM_id() {
        return m_id;
    }

    public int getRoom_id() {
        return Room_id;
    }

    public int getUser_id() {
        return User_id;
    }

    public Date getTimeStamp() {
        return TimeStamp;
    }

    public String getMessage() {
        return Message;
    }
    public boolean isSuccess() { return success;}
    public String getDisplayName() {
        return DisplayName;
    }
    public void setDisplayName(String displayName) {
        DisplayName = displayName;
    }

    public void setOwned(boolean owned) {
        this.owned = owned;
    }
}




Java Source Code List

com.example.ticknardif.hotspot.ApplicationTest.java
com.example.ticknardif.hotspot.util.SystemUiHiderBase.java
com.example.ticknardif.hotspot.util.SystemUiHiderHoneycomb.java
com.example.ticknardif.hotspot.util.SystemUiHider.java
com.ticknardif.hotspot.AppStartActivity.java
com.ticknardif.hotspot.ChatroomActivity.java
com.ticknardif.hotspot.ChatroomListAdapter.java
com.ticknardif.hotspot.ChatroomOverlay.java
com.ticknardif.hotspot.Chatroom.java
com.ticknardif.hotspot.CreateAccountActivity.java
com.ticknardif.hotspot.CreateChatroomFragment.java
com.ticknardif.hotspot.GcmBroadcastReceiver.java
com.ticknardif.hotspot.GcmIntentService.java
com.ticknardif.hotspot.LoginActivity.java
com.ticknardif.hotspot.MainActivity.java
com.ticknardif.hotspot.MessageListAdapter.java
com.ticknardif.hotspot.Message.java
com.ticknardif.hotspot.WebService.java
com.ticknardif.hotspot.RESTresponses.ChatRoomCreationResponse.java
com.ticknardif.hotspot.RESTresponses.ChatroomResponse.java
com.ticknardif.hotspot.RESTresponses.ChatroomUserResponse.java
com.ticknardif.hotspot.RESTresponses.CreateChatroomResponse.java
com.ticknardif.hotspot.RESTresponses.GCMResponse.java
com.ticknardif.hotspot.RESTresponses.JoinChatroomResponse.java
com.ticknardif.hotspot.RESTresponses.LeaveChatroomResponse.java
com.ticknardif.hotspot.RESTresponses.LoginResponse.java
com.ticknardif.hotspot.RESTresponses.LogoutResponse.java
com.ticknardif.hotspot.RESTresponses.UpdateLocationResponse.java
com.ticknardif.hotspot.RESTresponses.UserResponse.java