mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
22 lines
630 B
Objective-C
Executable File
22 lines
630 B
Objective-C
Executable File
//
|
|
// GDAccessTokenClientCredential.h
|
|
// GDFileManagerExample
|
|
//
|
|
// Created by Graham Dennis on 4/07/13.
|
|
// Copyright (c) 2013 Graham Dennis. All rights reserved.
|
|
//
|
|
|
|
#import "GDClientCredential.h"
|
|
|
|
@interface GDAccessTokenClientCredential : GDClientCredential
|
|
|
|
- (BOOL)isAccessTokenValid;
|
|
|
|
- (void)getRenewedAccessTokenUsingClient:(GDHTTPClient *)client
|
|
success:(void (^)(GDClientCredential *credential, BOOL isFreshFromRemote))success
|
|
failure:(void (^)(NSError *error))failure;
|
|
|
|
@property (nonatomic, readonly, copy) NSDate *accessTokenExpirationDate;
|
|
|
|
@end
|