1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// GENERATED CODE

use crate::api_default_imports::*;
use crate::groups::*;

api_client!(
    ConversationsApiClient,
    ConversationsIdApiClient,
    ResourceIdentity::Conversations
);

impl ConversationsApiClient {
    post!(
        doc: "Create conversation",
        name: create_conversations,
        path: "/conversations",
        body: true
    );
    get!(
        doc: "List conversations",
        name: list_conversations,
        path: "/conversations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_conversations_count,
        path: "/conversations/$count"
    );
}

impl ConversationsIdApiClient {
    api_client_link!(threads, ThreadsApiClient);
    api_client_link_id!(thread, ThreadsIdApiClient);

    delete!(
        doc: "Delete navigation property conversations for groups",
        name: delete_conversations,
        path: "/conversations/{{RID}}"
    );
    get!(
        doc: "Get conversations from groups",
        name: get_conversations,
        path: "/conversations/{{RID}}"
    );
}