1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/thirdparty/GDFileManager/GDAccessTokenClientCredential.h
2015-10-01 19:19:52 +03:00

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