-
-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[ALT TEXT] Display Article (Part 2)
- Loading branch information
Showing
9 changed files
with
233 additions
and
89 deletions.
There are no files selected for viewing
19 changes: 18 additions & 1 deletion
19
...omponents/Components/Suggested Edits/Alt Text Experiment/AltTextExperimentViewModel.swift
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,18 +1,35 @@ | ||
import Foundation | ||
|
||
public struct AltTextExperimentViewModel { | ||
|
||
public struct LocalizedStrings { | ||
public let articleNavigationBarTitle: String | ||
|
||
public init(articleNavigationBarTitle: String) { | ||
self.articleNavigationBarTitle = articleNavigationBarTitle | ||
} | ||
} | ||
|
||
public let localizedStrings: LocalizedStrings | ||
public let articleTitle: String | ||
public let caption: String? | ||
public let imageFullURL: String | ||
public let imageThumbURL: String | ||
public let filename: String | ||
public let imageWikitext: String | ||
public let fullArticleWikitextWithImage: String | ||
public let lastRevisionID: UInt64 | ||
|
||
public init(articleTitle: String, caption: String?, imageFullURL: String, imageThumbURL: String, filename: String) { | ||
public init(localizedStrings: LocalizedStrings, articleTitle: String, caption: String?, imageFullURL: String, imageThumbURL: String, filename: String, imageWikitext: String, fullArticleWikitextWithImage: String, lastRevisionID: UInt64) { | ||
self.localizedStrings = localizedStrings | ||
self.articleTitle = articleTitle | ||
self.caption = caption | ||
self.imageFullURL = imageFullURL | ||
self.imageThumbURL = imageThumbURL | ||
self.filename = filename | ||
self.imageWikitext = imageWikitext | ||
self.fullArticleWikitextWithImage = fullArticleWikitextWithImage | ||
self.lastRevisionID = lastRevisionID | ||
} | ||
} | ||
|
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
Oops, something went wrong.