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
46
47
48
49
50
51
52
53
54
55
56
57
// GENERATED CODE

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

resource_api_client!(
    ThreadsApiClient,
    ThreadsIdApiClient,
    ResourceIdentity::Threads
);

impl ThreadsApiClient {
    post!(
        doc: "Create conversation thread",
        name: create_threads,
        path: "/threads",
        body: true
    );
    get!(
        doc: "List threads",
        name: list_threads,
        path: "/threads"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_threads_count,
        path: "/threads/$count"
    );
}

impl ThreadsIdApiClient {
    api_client_link!(posts, ThreadsPostsApiClient);
    api_client_link_id!(post, ThreadsPostsIdApiClient);

    delete!(
        doc: "Delete navigation property threads for groups",
        name: delete_threads,
        path: "/threads/{{RID}}"
    );
    get!(
        doc: "Get threads from groups",
        name: get_threads,
        path: "/threads/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property threads in groups",
        name: update_threads,
        path: "/threads/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action reply",
        name: reply,
        path: "/threads/{{RID}}/reply",
        body: true
    );
}