pl.mbdev.openstage.openim
Class InstantMessage
java.lang.Object
pl.mbdev.openstage.openim.InstantMessage
public class InstantMessage
- extends java.lang.Object
Representation of the entry in the Messages table of the database that stores data of
OpenStage IM.
Copyright 2011 Mateusz Bysiek,
mb@mbdev.pl, http://mbdev.pl/
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.
- Author:
- Mateusz Bysiek
Constructor Summary |
InstantMessage(java.lang.String timestamp,
java.lang.String receiver,
java.lang.String sender,
java.lang.String message)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InstantMessage
public InstantMessage(java.lang.String timestamp,
java.lang.String receiver,
java.lang.String sender,
java.lang.String message)
- Parameters:
timestamp
- receiver
- sender
- message
-
getTimestamp
public java.util.GregorianCalendar getTimestamp()
- Returns:
- time stamp
getDateTime
public java.lang.String getDateTime()
- Returns:
- date and time
getTimestampRaw
public java.lang.String getTimestampRaw()
- Returns:
- raw time stamp in milliseconds
getReceiver
public java.lang.String getReceiver()
- Returns:
- receiver
setReceiver
public void setReceiver(java.lang.String receiver)
getSender
public java.lang.String getSender()
- Returns:
- sender
getMessage
public java.lang.String getMessage()
- Returns:
- message
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toPrivateString
public java.lang.String toPrivateString()
- Returns:
- string with message contents hidden