diff options
| author | Mistivia <i@mistivia.com> | 2025-11-02 15:27:18 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-11-02 15:27:18 +0800 |
| commit | e9c24f4af7ed56760f6db7941827d09f6db9020b (patch) | |
| tree | 62128c43b883ce5e3148113350978755779bb5de /teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go | |
| parent | 58d5e7cfda4781d8a57ec52aefd02983835c301a (diff) | |
add matterbridge
Diffstat (limited to 'teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go')
| -rw-r--r-- | teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go b/teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go new file mode 100644 index 0000000..18f30a2 --- /dev/null +++ b/teleirc/matterbridge/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go @@ -0,0 +1,71 @@ +// Code generated by msgraph.go/gen DO NOT EDIT. + +package msgraph + +import "context" + +// ProfileRequestBuilder is request builder for Profile +type ProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProfileRequest +func (b *ProfileRequestBuilder) Request() *ProfileRequest { + return &ProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProfileRequest is request for Profile +type ProfileRequest struct{ BaseRequest } + +// Get performs GET request for Profile +func (r *ProfileRequest) Get(ctx context.Context) (resObj *Profile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Profile +func (r *ProfileRequest) Update(ctx context.Context, reqObj *Profile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Profile +func (r *ProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ProfilePhotoRequestBuilder is request builder for ProfilePhoto +type ProfilePhotoRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProfilePhotoRequest +func (b *ProfilePhotoRequestBuilder) Request() *ProfilePhotoRequest { + return &ProfilePhotoRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProfilePhotoRequest is request for ProfilePhoto +type ProfilePhotoRequest struct{ BaseRequest } + +// Get performs GET request for ProfilePhoto +func (r *ProfilePhotoRequest) Get(ctx context.Context) (resObj *ProfilePhoto, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ProfilePhoto +func (r *ProfilePhotoRequest) Update(ctx context.Context, reqObj *ProfilePhoto) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ProfilePhoto +func (r *ProfilePhotoRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} |
