mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
26 lines
591 B
C
26 lines
591 B
C
|
//
|
||
|
// GDCredential.h
|
||
|
// GDFileManagerExample
|
||
|
//
|
||
|
// Created by Graham Dennis on 26/01/13.
|
||
|
// Copyright (c) 2013 Graham Dennis. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
@class GDAPIToken;
|
||
|
@class GDHTTPClient;
|
||
|
|
||
|
@interface GDClientCredential : NSObject <NSCoding>
|
||
|
|
||
|
- (id)initWithUserID:(NSString *)userID apiToken:(GDAPIToken *)apiToken;
|
||
|
|
||
|
- (BOOL)isValid;
|
||
|
- (BOOL)canBeRenewed;
|
||
|
- (NSComparisonResult)compare:(GDClientCredential *)otherCredential;
|
||
|
|
||
|
@property (nonatomic, strong, readonly) GDAPIToken *apiToken;
|
||
|
@property (nonatomic, copy, readonly) NSString *userID;
|
||
|
|
||
|
@end
|