Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kt-ios
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Виктор
kt-ios
Commits
1246f402
Commit
1246f402
authored
Nov 01, 2017
by
Olzhas Aldabergenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bot chat children node fixed
parent
77bcef1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
6 deletions
+27
-6
UserInterfaceState.xcuserstate
...cuserdata/neox.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Breakpoints_v2.xcbkptlist
...ata/neox.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+16
-0
Facade+Bot.swift
kt/Facade/Facade+Bot.swift
+2
-0
BotNode.swift
kt/Models/BotNode.swift
+9
-6
No files found.
kt.xcworkspace/xcuserdata/neox.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1246f402
No preview for this file type
kt.xcworkspace/xcuserdata/neox.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
1246f402
...
@@ -195,5 +195,21 @@
...
@@ -195,5 +195,21 @@
landmarkType =
"7"
>
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointContent>
</BreakpointProxy>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"kt/Facade/Facade+Bot.swift"
timestampString =
"531225432.809038"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"13"
endingLineNumber =
"13"
landmarkName =
"askBot(text:onSuccess:onError:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Breakpoints>
</Bucket>
</Bucket>
kt/Facade/Facade+Bot.swift
View file @
1246f402
...
@@ -65,6 +65,8 @@ extension Facade {
...
@@ -65,6 +65,8 @@ extension Facade {
botNode
.
text
=
n
[
"text"
]
.
string
botNode
.
text
=
n
[
"text"
]
.
string
botNode
.
expanded
=
n
[
"expanded"
]
.
int
botNode
.
expanded
=
n
[
"expanded"
]
.
int
botNode
.
isLink
=
n
[
"isLink"
]
.
int
botNode
.
isLink
=
n
[
"isLink"
]
.
int
botNode
.
entityId
=
n
[
"entity_id"
]
.
string
botNode
.
type
=
n
[
"type"
]
.
string
botNodes
.
append
(
botNode
)
botNodes
.
append
(
botNode
)
}
}
let
res
=
BotResult
()
let
res
=
BotResult
()
...
...
kt/Models/BotNode.swift
View file @
1246f402
...
@@ -24,6 +24,13 @@ class BotNode: NSObject, NSCoding {
...
@@ -24,6 +24,13 @@ class BotNode: NSObject, NSCoding {
super
.
init
()
super
.
init
()
}
}
func
compare
(
botNode
:
BotNode
)
->
Bool
{
if
botNode
.
id
!.
compare
(
self
.
id
!
)
==
.
OrderedSame
{
return
true
}
return
false
}
required
init
?(
coder
aDecoder
:
NSCoder
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
id
=
aDecoder
.
decodeObjectForKey
(
"id"
)
as!
String
?
id
=
aDecoder
.
decodeObjectForKey
(
"id"
)
as!
String
?
parentId
=
aDecoder
.
decodeObjectForKey
(
"parentId"
)
as!
String
?
parentId
=
aDecoder
.
decodeObjectForKey
(
"parentId"
)
as!
String
?
...
@@ -32,12 +39,8 @@ class BotNode: NSObject, NSCoding {
...
@@ -32,12 +39,8 @@ class BotNode: NSObject, NSCoding {
text
=
aDecoder
.
decodeObjectForKey
(
"text"
)
as!
String
?
text
=
aDecoder
.
decodeObjectForKey
(
"text"
)
as!
String
?
expanded
=
aDecoder
.
decodeObjectForKey
(
"expanded"
)
as!
Int
?
expanded
=
aDecoder
.
decodeObjectForKey
(
"expanded"
)
as!
Int
?
isLink
=
aDecoder
.
decodeObjectForKey
(
"isLink"
)
as!
Int
?
isLink
=
aDecoder
.
decodeObjectForKey
(
"isLink"
)
as!
Int
?
if
(
aDecoder
.
containsValueForKey
(
"entityId"
)
)
{
entityId
=
aDecoder
.
decodeObjectForKey
(
"entityId"
)
as!
String
?
entityId
=
aDecoder
.
decodeObjectForKey
(
"entityId"
)
as!
String
?
type
=
aDecoder
.
decodeObjectForKey
(
"type"
)
as!
String
?
}
if
(
aDecoder
.
containsValueForKey
(
"type"
)
)
{
type
=
aDecoder
.
decodeObjectForKey
(
"type"
)
as!
String
?
}
}
}
func
encodeWithCoder
(
aCoder
:
NSCoder
)
{
func
encodeWithCoder
(
aCoder
:
NSCoder
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment