Files
Doug 882fcab738 Refactoring and tidy up.
Make the preview manager a singleton (passing in the MXSession to functions). Fix tests.

PreviewManager → URLPreviewManager
URLPreviewViewData → URLPreviewData
URLPreviewCache → URLPreviewStore
2021-09-01 12:28:56 +01:00

25 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="18154" systemVersion="20G95" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="ClosedURLPreview" representedClassName="ClosedURLPreview" syncable="YES" codeGenerationType="class">
<attribute name="eventID" attributeType="String"/>
<attribute name="roomID" attributeType="String"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="eventID"/>
<constraint value="roomID"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<entity name="URLPreviewCacheData" representedClassName="URLPreviewCacheData" syncable="YES" codeGenerationType="class">
<attribute name="creationDate" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="image" optional="YES" attributeType="Transformable" valueTransformerName="URLPreviewImageTransformer"/>
<attribute name="siteName" optional="YES" attributeType="String"/>
<attribute name="text" optional="YES" attributeType="String"/>
<attribute name="title" optional="YES" attributeType="String"/>
<attribute name="url" attributeType="URI"/>
</entity>
<elements>
<element name="URLPreviewCacheData" positionX="0" positionY="0" width="128" height="119"/>
<element name="ClosedURLPreview" positionX="0" positionY="45" width="128" height="59"/>
</elements>
</model>