OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569a5aa
)
パラメータからカンマ区切り配列を取れるようにした
author
masakih
<masakih@users.sourceforge.jp>
Mon, 11 Dec 2017 12:45:23 +0000
(21:45 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Mon, 11 Dec 2017 12:45:23 +0000
(21:45 +0900)
KCD/APIResponse.swift
patch
|
blob
|
history
diff --git
a/KCD/APIResponse.swift
b/KCD/APIResponse.swift
index
26ae629
..
4180163
100644
(file)
--- a/
KCD/APIResponse.swift
+++ b/
KCD/APIResponse.swift
@@
-93,6
+93,10
@@
struct ParameterValue {
return false
}
+ var array: [ParameterValue] {
+
+ return rawValue?.components(separatedBy: ",").map { ParameterValue($0) } ?? []
+ }
var valid: Bool { return rawValue != nil }