Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #pragma once
00016
00017 #import "OFResource.h"
00018
00019 @class OFRequestHandle;
00020 @protocol OFTimeStampDelegate;
00021
00026 @interface OFTimeStamp : OFResource<OFCallbackable>
00027 {
00028 @private
00029 NSDate* time;
00030 int secondsSinceEpoch;
00031 }
00032
00039 + (void)setDelegate:(id<OFTimeStampDelegate>)delegate;
00040
00050 + (OFRequestHandle*)getServerTime;
00051
00055 @property (nonatomic, readonly) NSDate* time;
00056 @property (nonatomic, readonly) int secondsSinceEpoch;
00057
00058 + (NSString*)getResourceName;
00059
00060 @end
00061
00067 @protocol OFTimeStampDelegate
00068 @optional
00069
00075 - (void)didGetServerTime:(OFTimeStamp*)timeStamp;
00076
00080 - (void)didFailGetServerTime;
00081
00082 @end