1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/thirdparty/GDFileManager/GDGoogleDriveChange.m

40 lines
852 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
//
// GDGoogleDriveChange.m
// GDFileManagerExample
//
// Created by Graham Dennis on 27/06/13.
// Copyright (c) 2013 Graham Dennis. All rights reserved.
//
#import "GDGoogleDriveChange.h"
#import "GDGoogleDriveMetadata.h"
@implementation GDGoogleDriveChange
- (id)initWithDictionary:(NSDictionary *)dictionary
{
if ((self = [super initWithDictionary:dictionary])) {
[self createMetadataObject];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
if ((self = [super initWithCoder:aDecoder])) {
[self createMetadataObject];
}
return self;
}
- (void)createMetadataObject
{
NSDictionary *fileMetadataDictionary = self.backingStore[@"file"];
if (fileMetadataDictionary)
_fileMetadata = [[GDGoogleDriveMetadata alloc] initWithDictionary:self.backingStore[@"file"]];
}
@end