danger.util
Class ServiceTime

java.lang.Object
  |
  +--danger.util.ServiceTime
All Implemented Interfaces:
danger.io.Storable

public class ServiceTime
extends java.lang.Object
implements danger.io.Storable


Constructor Summary
ServiceTime()
           
 
Method Summary
 int getClassID()
           
 int getClassVersion()
           
static int getLastSyncTime()
          Returns the time that we last received a time update from the service, which also happens to be the time value the service sent down.
 void readFromStream(danger.io.ObjectInputStream s, int version)
           
 void writeToStream(danger.io.ObjectOutputStream s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTime

public ServiceTime()
Method Detail

readFromStream

public void readFromStream(danger.io.ObjectInputStream s,
                           int version)
                    throws java.io.IOException
Specified by:
readFromStream in interface danger.io.Storable

writeToStream

public void writeToStream(danger.io.ObjectOutputStream s)
                   throws java.io.IOException
Specified by:
writeToStream in interface danger.io.Storable

getClassID

public int getClassID()
Specified by:
getClassID in interface danger.io.Storable

getClassVersion

public int getClassVersion()
Specified by:
getClassVersion in interface danger.io.Storable

getLastSyncTime

public static int getLastSyncTime()
Returns the time that we last received a time update from the service, which also happens to be the time value the service sent down. Returns -1 if we have never received a time update.


Danger Confidential. Copyright © 2000-2003, Danger Inc.