1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/thirdparty/GDFileManager/GDAccessTokenClientCredential.h

22 lines
630 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
//
// 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