Skip to content

Commit 42caf3b

Browse files
Merge pull request #223 from Countly/PEID-fix
Previous event id (PEID) added in dictionary and encoder decoder calls
2 parents a3b18bc + 64ed2f5 commit 42caf3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CountlyEvent.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ - (NSDictionary *)dictionaryRepresentation
3232
eventData[kCountlyEventKeyID] = self.ID;
3333
eventData[kCountlyEventKeyCVID] = self.CVID;
3434
eventData[kCountlyEventKeyPVID] = self.PVID;
35+
eventData[kCountlyEventKeyPEID] = self.PEID;
3536
eventData[kCountlyEventKeyCount] = @(self.count);
3637
eventData[kCountlyEventKeySum] = @(self.sum);
3738
eventData[kCountlyEventKeyTimestamp] = @((long long)(self.timestamp * 1000));
@@ -49,6 +50,7 @@ - (instancetype)initWithCoder:(NSCoder *)decoder
4950
self.ID = [decoder decodeObjectForKey:NSStringFromSelector(@selector(ID))];
5051
self.CVID = [decoder decodeObjectForKey:NSStringFromSelector(@selector(CVID))];
5152
self.PVID = [decoder decodeObjectForKey:NSStringFromSelector(@selector(PVID))];
53+
self.PEID = [decoder decodeObjectForKey:NSStringFromSelector(@selector(PEID))];
5254
self.segmentation = [decoder decodeObjectForKey:NSStringFromSelector(@selector(segmentation))];
5355
self.count = [decoder decodeIntegerForKey:NSStringFromSelector(@selector(count))];
5456
self.sum = [decoder decodeDoubleForKey:NSStringFromSelector(@selector(sum))];
@@ -57,7 +59,7 @@ - (instancetype)initWithCoder:(NSCoder *)decoder
5759
self.dayOfWeek = [decoder decodeIntegerForKey:NSStringFromSelector(@selector(dayOfWeek))];
5860
self.duration = [decoder decodeDoubleForKey:NSStringFromSelector(@selector(duration))];
5961
}
60-
62+
6163
return self;
6264
}
6365

@@ -67,6 +69,7 @@ - (void)encodeWithCoder:(NSCoder *)encoder
6769
[encoder encodeObject:self.ID forKey:NSStringFromSelector(@selector(ID))];
6870
[encoder encodeObject:self.CVID forKey:NSStringFromSelector(@selector(CVID))];
6971
[encoder encodeObject:self.PVID forKey:NSStringFromSelector(@selector(PVID))];
72+
[encoder encodeObject:self.PEID forKey:NSStringFromSelector(@selector(PEID))];
7073
[encoder encodeObject:self.segmentation forKey:NSStringFromSelector(@selector(segmentation))];
7174
[encoder encodeInteger:self.count forKey:NSStringFromSelector(@selector(count))];
7275
[encoder encodeDouble:self.sum forKey:NSStringFromSelector(@selector(sum))];

0 commit comments

Comments
 (0)