1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/thirdparty/GDFileManager/GDClientCredential.h
2015-10-01 19:19:52 +03:00

26 lines
591 B
Objective-C
Executable File

//
// 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