Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Dummy Data prior to database call:
- static var listPoses = [
- YogaPose(id: 1, title: "Pose1", description: "This is a Description 1", difficulty: Enums.Difficulty.Beginner, imageURL: "Images/Blah1"),
- YogaPose(id: 2, title: "Pose2", description: "This is a Description 2", difficulty: Enums.Difficulty.Advanced, imageURL: "Images/Blah2"),
- YogaPose(id: 3, title: "Pose3", description: "This is a Description 3", difficulty: Enums.Difficulty.Intermediate, imageURL: "Images/Blah3"),
- YogaPose(id: 3, title: "Hello World", description: "This is a Description 3", difficulty: Enums.Difficulty.Intermediate, imageURL: "Images/Blah3")
- ]
- //Returns a single YogaPose By Id:
- class func GetPosesById(Id: Int) -> YogaPose{
- if(listPoses.count > 0){
- return listPoses() ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement