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:
746293e
)
integerArrayプロパティを追加
author
masakih
<masakih@users.sourceforge.jp>
Mon, 11 Dec 2017 15:28:38 +0000
(
00:28
+0900)
committer
masakih
<masakih@users.sourceforge.jp>
Mon, 11 Dec 2017 15:28:38 +0000
(
00:28
+0900)
KCD/APIResponse.swift
patch
|
blob
|
history
diff --git
a/KCD/APIResponse.swift
b/KCD/APIResponse.swift
index
4180163
..
a10cb9a
100644
(file)
--- a/
KCD/APIResponse.swift
+++ b/
KCD/APIResponse.swift
@@
-97,6
+97,9
@@
struct ParameterValue {
return rawValue?.components(separatedBy: ",").map { ParameterValue($0) } ?? []
}
+ var integerArray: [Int] {
+ return array.flatMap { $0.int }
+ }
var valid: Bool { return rawValue != nil }