forked from vvkeep/JSONConverter
-
Notifications
You must be signed in to change notification settings - Fork 1
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
11 changed files
with
140 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// YWContent.swift | ||
// JSONConverter | ||
// | ||
// Created by 姚巍 on 2018/2/7. | ||
// Copyright © 2018年 姚巍. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
class YWContent { | ||
var properties: [YWProperty] | ||
|
||
var langStruct: LangStruct | ||
|
||
init(properties: [YWProperty], langStruct: LangStruct) { | ||
self.properties = properties | ||
self.langStruct = langStruct | ||
} | ||
|
||
func toString() -> String { | ||
return "" | ||
} | ||
} |
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,32 @@ | ||
// | ||
// YWFile.swift | ||
// JSONExport | ||
// | ||
// Created by 姚巍 on 2018/2/7. | ||
// Copyright © 2018年 Ahmed Ali. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
class YWFile { | ||
|
||
/// 文件名 | ||
var name: String | ||
|
||
var langStruct: LangStruct | ||
|
||
var header: String = "" | ||
|
||
var contents: [YWContent] | ||
|
||
init(className: String, langStruct: LangStruct, contents: [YWContent]) { | ||
self.name = className | ||
self.langStruct = langStruct | ||
self.contents = contents | ||
} | ||
|
||
func toString() -> String { | ||
return "" | ||
} | ||
} | ||
|
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,36 @@ | ||
// | ||
// YWProperty.swift | ||
// JSONConverter | ||
// | ||
// Created by 姚巍 on 2018/2/7. | ||
// Copyright © 2018年 姚巍. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
enum YWPropertyType { | ||
case `String` | ||
case `Int` | ||
case `Double` | ||
case `Bool` | ||
case `Array` | ||
case `Dictionary` | ||
case CustomObj | ||
} | ||
|
||
|
||
class YWProperty { | ||
var nativeName: String | ||
var jsonName: String | ||
var type: YWPropertyType | ||
|
||
init(nativeName: String, jsonName: String, type: YWPropertyType) { | ||
self.nativeName = nativeName | ||
self.jsonName = jsonName | ||
self.type = type | ||
} | ||
|
||
func toString() -> String { | ||
return "" | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
// | ||
// YWAlertView.swift | ||
// JSONConverter | ||
// | ||
// Created by 姚巍 on 2018/2/7. | ||
// Copyright © 2018年 姚巍. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
class YWAlertView { | ||
func alertView() { | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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