-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
4,771 additions
and
13 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
LYSwiftPractise.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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
35 changes: 35 additions & 0 deletions
35
LYSwiftPractise/Classes/Message/Model/DBMovieTopListModel.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// DBMovieTopListModel.swift | ||
// LYSwiftPractise | ||
// | ||
// Created by Lee on 2018/8/8. | ||
// Copyright © 2018年 Lee. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class DBMovieTopListModel: NSObject { | ||
|
||
var images: NSDictionary? | ||
var title: NSString? | ||
var casts: NSArray? | ||
var directors: NSArray? | ||
var rating: NSDictionary? | ||
var year: NSString? | ||
var movieId: NSString? | ||
|
||
} | ||
|
||
|
||
extension DBMovieTopListModel { | ||
|
||
func initWithDic(infoDic: NSDictionary) { | ||
self.images = infoDic["images"] as? NSDictionary | ||
self.title = infoDic["title"] as? NSString | ||
self.casts = infoDic["casts"] as? NSArray | ||
self.directors = infoDic["directors"] as? NSArray | ||
self.rating = infoDic["rating"] as? NSDictionary | ||
self.year = infoDic["year"] as? NSString | ||
self.movieId = infoDic["id"] as? NSString | ||
} | ||
} |
Oops, something went wrong.