This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add message caching for outgoing messages
- Loading branch information
Showing
12 changed files
with
251 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// MessageEntitie+CoreDataClass.swift | ||
// | ||
// | ||
// Created by yannik grotkop on 13.06.19. | ||
// | ||
// | ||
|
||
import Foundation | ||
import CoreData | ||
|
||
@objc(MessageEntitie) | ||
public class MessageEntitie: NSManagedObject { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// MessageEntitie+CoreDataProperties.swift | ||
// | ||
// | ||
// Created by yannik grotkop on 13.06.19. | ||
// | ||
// | ||
|
||
import Foundation | ||
import CoreData | ||
|
||
|
||
extension MessageEntitie { | ||
|
||
@nonobjc public class func fetchRequest() -> NSFetchRequest<MessageEntitie> { | ||
return NSFetchRequest<MessageEntitie>(entityName: "MessageEntitie") | ||
} | ||
|
||
@NSManaged public var chatID: String? | ||
@NSManaged public var date: NSDate? | ||
@NSManaged public var matchID: String? | ||
@NSManaged public var message: String? | ||
@NSManaged public var ownerID: String? | ||
@NSManaged public var read: Bool | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
PulsePartner/Model/Chat/Chat.xcdatamodeld/Chat.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14490.98" systemVersion="18E226" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<entity name="Message" representedClassName="Message" syncable="YES" codeGenerationType="class"> | ||
<entity name="MessageEntitie" representedClassName="MessageEntitie" syncable="YES" codeGenerationType="class"> | ||
<attribute name="chatID" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/> | ||
<attribute name="matchID" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="message" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="ownerID" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="read" optional="YES" attributeType="Boolean" usesScalarValueType="YES" syncable="YES"/> | ||
</entity> | ||
<elements> | ||
<element name="Message" positionX="-63" positionY="-18" width="128" height="105"/> | ||
<element name="MessageEntitie" positionX="-63" positionY="-18" width="128" height="135"/> | ||
</elements> | ||
</model> |
Oops, something went wrong.