Skip to content

Commit 97e8ce3

Browse files
committed
Storage: Site Entity
1 parent f965288 commit 97e8ce3

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

Storage/Storage.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
/* Begin PBXBuildFile section */
1010
68BC97FB41770051C287D1A8 /* Pods_StorageTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47556EE256120BEE49FF5FD3 /* Pods_StorageTests.framework */; };
1111
7028A41485A08AC748206184 /* Pods_Storage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DF3D3B298350F68191CD1DAD /* Pods_Storage.framework */; };
12+
B505254920EE6080008090F5 /* Site+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = B505254720EE607F008090F5 /* Site+CoreDataProperties.swift */; };
13+
B505254A20EE6080008090F5 /* Site+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = B505254820EE6080008090F5 /* Site+CoreDataClass.swift */; };
1214
B505F6DA20BEEA3200BB1B69 /* Account+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = B505F6D820BEEA3100BB1B69 /* Account+CoreDataProperties.swift */; };
1315
B505F6DB20BEEA3200BB1B69 /* Account+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = B505F6D920BEEA3200BB1B69 /* Account+CoreDataClass.swift */; };
1416
B505F6DE20BEEA4F00BB1B69 /* CoreDataManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B505F6DD20BEEA4F00BB1B69 /* CoreDataManager.swift */; };
@@ -45,6 +47,8 @@
4547
5D12CAE2D0EA6AB66F162FF9 /* Pods-StorageTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-StorageTests.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-StorageTests/Pods-StorageTests.debug.xcconfig"; sourceTree = "<group>"; };
4648
7C81935EDD982072BBDCC837 /* Pods-Storage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Storage.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Storage/Pods-Storage.release.xcconfig"; sourceTree = "<group>"; };
4749
A3821B262583F14863740A37 /* Pods-Storage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Storage.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Storage/Pods-Storage.debug.xcconfig"; sourceTree = "<group>"; };
50+
B505254720EE607F008090F5 /* Site+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Site+CoreDataProperties.swift"; path = "/Users/lantean/Developer/Automattic/woocommerce-ios/Storage/Storage/Model/Site+CoreDataProperties.swift"; sourceTree = "<absolute>"; };
51+
B505254820EE6080008090F5 /* Site+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Site+CoreDataClass.swift"; path = "/Users/lantean/Developer/Automattic/woocommerce-ios/Storage/Storage/Model/Site+CoreDataClass.swift"; sourceTree = "<absolute>"; };
4852
B505F6D820BEEA3100BB1B69 /* Account+CoreDataProperties.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Account+CoreDataProperties.swift"; sourceTree = "<group>"; };
4953
B505F6D920BEEA3200BB1B69 /* Account+CoreDataClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Account+CoreDataClass.swift"; sourceTree = "<group>"; };
5054
B505F6DD20BEEA4F00BB1B69 /* CoreDataManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoreDataManager.swift; sourceTree = "<group>"; };
@@ -209,6 +213,8 @@
209213
B59E11D820A9D00C004121A4 /* WooCommerce.xcdatamodeld */,
210214
B505F6D920BEEA3200BB1B69 /* Account+CoreDataClass.swift */,
211215
B505F6D820BEEA3100BB1B69 /* Account+CoreDataProperties.swift */,
216+
B505254820EE6080008090F5 /* Site+CoreDataClass.swift */,
217+
B505254720EE607F008090F5 /* Site+CoreDataProperties.swift */,
212218
);
213219
path = Model;
214220
sourceTree = "<group>";
@@ -392,8 +398,10 @@
392398
isa = PBXSourcesBuildPhase;
393399
buildActionMask = 2147483647;
394400
files = (
401+
B505254A20EE6080008090F5 /* Site+CoreDataClass.swift in Sources */,
395402
B54CA5BB20A4BD2800F38CD1 /* NSManagedObject+Object.swift in Sources */,
396403
B505F6DB20BEEA3200BB1B69 /* Account+CoreDataClass.swift in Sources */,
404+
B505254920EE6080008090F5 /* Site+CoreDataProperties.swift in Sources */,
397405
B54CA5BD20A4BD3B00F38CD1 /* NSManagedObjectContext+Storage.swift in Sources */,
398406
B59E11DA20A9D00C004121A4 /* WooCommerce.xcdatamodeld in Sources */,
399407
B52B0F7920AA287C00477698 /* StorageManagerType.swift in Sources */,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Foundation
2+
import CoreData
3+
4+
@objc(Site)
5+
public class Site: NSManagedObject {
6+
7+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Foundation
2+
import CoreData
3+
4+
5+
extension Site {
6+
7+
@nonobjc public class func fetchRequest() -> NSFetchRequest<Site> {
8+
return NSFetchRequest<Site>(entityName: "Site")
9+
}
10+
11+
@NSManaged public var siteID: Int64
12+
@NSManaged public var name: String?
13+
@NSManaged public var tagline: String?
14+
@NSManaged public var url: String?
15+
@NSManaged public var isWordPressStore: Double
16+
}
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14133" systemVersion="17E202" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
2+
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14135" systemVersion="17F77" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
33
<entity name="Account" representedClassName="Account" syncable="YES">
44
<attribute name="displayName" optional="YES" attributeType="String" syncable="YES"/>
55
<attribute name="email" optional="YES" attributeType="String" syncable="YES"/>
66
<attribute name="gravatarUrl" optional="YES" attributeType="String" syncable="YES"/>
77
<attribute name="userID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
88
<attribute name="username" attributeType="String" syncable="YES"/>
99
</entity>
10+
<entity name="Site" representedClassName="Site" syncable="YES">
11+
<attribute name="isWordPressStore" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES" syncable="YES"/>
12+
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
13+
<attribute name="siteID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
14+
<attribute name="tagline" optional="YES" attributeType="String" syncable="YES"/>
15+
<attribute name="url" optional="YES" attributeType="String" syncable="YES"/>
16+
</entity>
1017
<elements>
1118
<element name="Account" positionX="-63" positionY="-18" width="128" height="120"/>
19+
<element name="Site" positionX="-63" positionY="18" width="128" height="120"/>
1220
</elements>
1321
</model>

0 commit comments

Comments
 (0)