Skip to content

Commit

Permalink
Version 3.31.6
Browse files Browse the repository at this point in the history
  • Loading branch information
webim committed Jun 26, 2020
1 parent 54a3000 commit 1fa20d3
Show file tree
Hide file tree
Showing 77 changed files with 2,808 additions and 1,406 deletions.
22 changes: 11 additions & 11 deletions Documentation/FAQ methods documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ do {

Значение | Описание
------------|------------
NIL_ACCOUNT_NAME | Возникает, когда при создании блока часто задаваемых вопросов не было передано значение названия аккаунта
nilAccountName | Возникает, когда при создании блока часто задаваемых вопросов не было передано значение названия аккаунта

# Протокол FAQ
Протокол, позволяющий производить манипуляции с текущим списком часто задаваемых вопросов.
Expand Down Expand Up @@ -254,8 +254,8 @@ NIL_ACCOUNT_NAME | Возникает, когда при создании бло

Значение | Описание
---------|---------
**INVALID_THREAD** | Возникает, когда метод был вызван не из потока, в котором был создан экземпляр блока часто задаваемых вопросов.
**INVALID_SESSION** | Возникает при попытке использования методов недействительного экземпляра **FAQ** (например, после того, как на нем был вызван метод **destroy()**).
**invalidThread** | Возникает, когда метод был вызван не из потока, в котором был создан экземпляр блока часто задаваемых вопросов.
**invalidSession** | Возникает при попытке использования методов недействительного экземпляра **faq** (например, после того, как на нем был вызван метод **destroy()**).

# протокол FAQCategory
Представление категории блока часто задаваемых вопросов. Предоставляет методы получения информации о категории.
Expand Down Expand Up @@ -340,9 +340,9 @@ NIL_ACCOUNT_NAME | Возникает, когда при создании бло

Значение | Описание
---------|---------
**LIKE** | Пользователю понравилась страница
**DISLIKE** | Пользователю не понравилась страница
**NO_RATE** | Страница не оценена пользователем
**like** | Пользователю понравилась страница
**dislike** | Пользователю не понравилась страница
**noRate** | Страница не оценена пользователем

# протокол FAQSearchItem
Краткая информация о страницах, полученных в результате поиска по ключевому слову.
Expand Down Expand Up @@ -388,14 +388,14 @@ NIL_ACCOUNT_NAME | Возникает, когда при создании бло

Значение | Описание
---------|---------
ITEM | Корень дерева является страницей
CATEGORY | Корень дерева является категорией
UNKNOWN | Корень дерева имеет неизвестный тип для данной версии SDK
item | Корень дерева является страницей
category | Корень дерева является категорией
unknown | Корень дерева имеет неизвестный тип для данной версии SDK

# перечисляемый тип FAQItemSource
Возможный источник статьи. Статья может быть взята из поиска или из структуры или категории.

Значение | Описание
---------|---------
SEARCH | Статью запрашивают из поиска
TREE | Статью запрашивают из структуры или категории
search | Статью запрашивают из поиска
tree | Статью запрашивают из структуры или категории
498 changes: 249 additions & 249 deletions Documentation/Index.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PODS:
- SQLite.swift (0.12.2):
- SQLite.swift/standard (= 0.12.2)
- SQLite.swift/standard (0.12.2)
- WebimClientLibrary (3.31.3):
- WebimClientLibrary (3.31.6):
- SQLite.swift (= 0.12.2)

DEPENDENCIES:
Expand Down Expand Up @@ -48,7 +48,7 @@ SPEC CHECKSUMS:
SlackTextViewController: b854e62c1c156336bc4fd409c6ca79b5773e8f9d
SnapKit: fe8a619752f3f27075cc9a90244d75c6c3f27e2a
SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3
WebimClientLibrary: ac0754fa95a003ffe2b15772670dbf3d2fbe2720
WebimClientLibrary: 73a15e308005ef1c5b935640a9cb68bfc9b8962a

PODFILE CHECKSUM: 6e32648b7078df57752b6b95cd2aa7128e22c8b5

Expand Down
2 changes: 1 addition & 1 deletion Example/Tests/DepartmentFactoryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DepartmentFactoryTests: XCTestCase {
let department = departmentFactory.convert(departmentItem: departmentItem)

XCTAssertEqual(department.getDepartmentOnlineStatus(),
DepartmentOnlineStatus.OFFLINE)
DepartmentOnlineStatus.offline)
XCTAssertEqual(department.getKey(),
"mobile_test_1")
XCTAssertEqual(department.getLocalizedNames()!.count,
Expand Down
2 changes: 1 addition & 1 deletion Example/Tests/ExampleTests/ChatViewControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ChatViewControllerTests: XCTestCase {
quote: nil,
senderAvatarURLString: nil,
senderName: "Sender name",
type: .VISITOR,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: Int64(index),
Expand Down
2 changes: 1 addition & 1 deletion Example/Tests/MemoryHistoryStorageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MemoryHistoryStorageTests: XCTestCase {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
type: MessageType.OPERATOR,
type: MessageType.operatorMessage,
data: nil,
text: "Text",
timeInMicrosecond: Int64(index),
Expand Down
8 changes: 4 additions & 4 deletions Example/Tests/MessageFactoriesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CurrentChatMapperTests: XCTestCase {
let message = currentChatMapper.map(message: MESSAGE_ITEM)!

XCTAssertEqual(message.getType(),
MessageType.OPERATOR)
MessageType.operatorMessage)
XCTAssertNil(message.getAttachment())
XCTAssertEqual(message.getText(),
"42")
Expand Down Expand Up @@ -91,7 +91,7 @@ class HistoryMapperTests: XCTestCase {
let message = historyMapper.map(message: MESSAGE_ITEM)!

XCTAssertEqual(message.getType(),
MessageType.OPERATOR)
MessageType.operatorMessage)
XCTAssertNil(message.getAttachment())
XCTAssertEqual(message.getText(),
"42")
Expand Down Expand Up @@ -124,7 +124,7 @@ class SendingFactoryTests: XCTestCase {
"1")
XCTAssertTrue(message.getSenderName().isEmpty)
XCTAssertEqual(message.getType(),
MessageType.VISITOR)
MessageType.visitorMessage)
XCTAssertEqual(message.getText(),
"Text")
}
Expand All @@ -136,7 +136,7 @@ class SendingFactoryTests: XCTestCase {
"1")
XCTAssertTrue(message.getSenderName().isEmpty)
XCTAssertEqual(message.getType(),
MessageType.FILE_FROM_VISITOR)
MessageType.fileFromVisitor)
XCTAssertTrue(message.getText().isEmpty)
}

Expand Down
12 changes: 6 additions & 6 deletions Example/Tests/MessageHolderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MessageHolderTests: XCTestCase {
quote: nil,
senderAvatarURLString: MessageImplMockData.avatarURLString.rawValue,
senderName: MessageImplMockData.senderName.rawValue,
type: MessageType.OPERATOR,
type: MessageType.operatorMessage,
data: nil,
text: MessageImplMockData.text.rawValue,
timeInMicrosecond: Int64(index),
Expand Down Expand Up @@ -93,7 +93,7 @@ class MessageHolderTests: XCTestCase {
quote: nil,
senderAvatarURLString: MessageImplMockData.avatarURLString.rawValue,
senderName: MessageImplMockData.senderName.rawValue,
type: MessageType.OPERATOR,
type: MessageType.operatorMessage,
data: nil,
text: MessageImplMockData.text.rawValue,
timeInMicrosecond: Int64(index),
Expand Down Expand Up @@ -151,7 +151,7 @@ class MessageHolderTests: XCTestCase {
quote: nil,
senderAvatarURLString: MessageImplMockData.avatarURLString.rawValue,
senderName: MessageImplMockData.senderName.rawValue,
type: MessageType.OPERATOR,
type: MessageType.operatorMessage,
data: nil,
text: MessageImplMockData.text.rawValue,
timeInMicrosecond: Int64(messagesCount),
Expand Down Expand Up @@ -1632,7 +1632,7 @@ class MessageHolderTests: XCTestCase {
let messageToSend = MessageToSend(serverURLString: "http://demo.webim.ru",
id: "1",
senderName: "Sender",
type: .OPERATOR,
type: .operatorMessage,
text: "Text",
timeInMicrosecond: 1)
let messageHolder = newMessageHolder()
Expand All @@ -1646,7 +1646,7 @@ class MessageHolderTests: XCTestCase {
let messageToSend = MessageToSend(serverURLString: "http://demo.webim.ru",
id: "1",
senderName: "Sender",
type: .OPERATOR,
type: .operatorMessage,
text: "Text",
timeInMicrosecond: 1)
let messageHolder = newMessageHolder()
Expand All @@ -1661,7 +1661,7 @@ class MessageHolderTests: XCTestCase {
let messageToSend = MessageToSend(serverURLString: "http://demo.webim.ru",
id: messageID,
senderName: "Sender",
type: .OPERATOR,
type: .operatorMessage,
text: "Text",
timeInMicrosecond: 1)
let messageHolder = newMessageHolder()
Expand Down
58 changes: 29 additions & 29 deletions Example/Tests/MessageImplTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class MessageImplTests: XCTestCase {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand Down Expand Up @@ -84,8 +84,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -109,8 +109,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -123,7 +123,7 @@ MessageImpl {
messageCanBeReplied: false)

XCTAssertEqual(message.getSendStatus(),
MessageSendStatus.SENT)
MessageSendStatus.sent)
}

func testIsEqual() {
Expand All @@ -135,8 +135,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -156,8 +156,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -176,8 +176,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name1",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -196,8 +196,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text1",
timeInMicrosecond: 0,
Expand All @@ -216,8 +216,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .OPERATOR,
sendStatus: .sent,
type: .operatorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -236,8 +236,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand Down Expand Up @@ -267,8 +267,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -292,8 +292,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -317,8 +317,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -343,8 +343,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: nil,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand All @@ -371,8 +371,8 @@ MessageImpl {
quote: nil,
senderAvatarURLString: avatarURLString,
senderName: "Name",
sendStatus: .SENT,
type: .VISITOR,
sendStatus: .sent,
type: .visitorMessage,
data: nil,
text: "Text",
timeInMicrosecond: 0,
Expand Down
Loading

0 comments on commit 1fa20d3

Please sign in to comment.