瀏覽代碼

add session on Activity

Marino Faggiana 8 年之前
父節點
當前提交
65739b6f24

+ 3 - 0
iOSClient/FileSystem/CCCoreData.m

@@ -1865,6 +1865,8 @@
         record.idActivity = [NSNumber numberWithInteger:activity.idActivity];
         record.link = activity.link;
         record.note = activity.subject;
+        record.selector = @"";
+        record.session = @"";
         record.type = k_activityTypeInfo;
         record.verbose = [NSNumber numberWithInteger:k_activityVerboseDefault];
     }];
@@ -1886,6 +1888,7 @@
         record.link = @"";
         record.note = note;
         record.selector = selector;
+        record.session = @"";
         record.type = type;
         record.verbose = [NSNumber numberWithInteger:verbose];
         

+ 1 - 0
iOSClient/FileSystem/TableActivity+CoreDataProperties.h

@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nullable, nonatomic, copy) NSString *link;
 @property (nullable, nonatomic, copy) NSString *note;
 @property (nullable, nonatomic, copy) NSString *selector;
+@property (nullable, nonatomic, copy) NSString *session;
 @property (nullable, nonatomic, copy) NSString *type;
 @property (nullable, nonatomic, copy) NSNumber *verbose;
 

+ 1 - 0
iOSClient/FileSystem/TableActivity+CoreDataProperties.m

@@ -22,6 +22,7 @@
 @dynamic link;
 @dynamic note;
 @dynamic selector;
+@dynamic session;
 @dynamic type;
 @dynamic verbose;
 

+ 2 - 1
iOSClient/cryptocloud.xcdatamodeld/cryptocloud 7.xcdatamodel/contents

@@ -47,6 +47,7 @@
         <attribute name="link" optional="YES" attributeType="String" syncable="YES"/>
         <attribute name="note" optional="YES" attributeType="String" syncable="YES"/>
         <attribute name="selector" optional="YES" attributeType="String" syncable="YES"/>
+        <attribute name="session" optional="YES" attributeType="String" syncable="YES"/>
         <attribute name="type" optional="YES" attributeType="String" syncable="YES"/>
         <attribute name="verbose" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
     </entity>
@@ -143,7 +144,7 @@
     </entity>
     <elements>
         <element name="TableAccount" positionX="-6597" positionY="111" width="171" height="585"/>
-        <element name="TableActivity" positionX="-6399" positionY="252" width="128" height="195"/>
+        <element name="TableActivity" positionX="-6399" positionY="252" width="128" height="210"/>
         <element name="TableAutomaticUpload" positionX="-6597" positionY="801" width="128" height="180"/>
         <element name="TableCertificates" positionX="-6597" positionY="711" width="128" height="60"/>
         <element name="TableDirectory" positionX="-6372" positionY="111" width="162" height="210"/>