PostService.Insert Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Insert(Post, App, IEnumerable, IEnumerable, IEnumerableOption>, bool)

Inserts a Post.

public static Post Insert(Post post, App app, IEnumerable<int> blobs = null, IEnumerable<int> embeds = null, IEnumerable<PollOption> options = null, bool auth = true)

Parameters

post
Post

Post to insert.

app
App

App where Post should be inserted.

blobs
System.Collections.Generic.IEnumerable

Ids of Blobs to attach.

embeds
System.Collections.Generic.IEnumerable

Ids of Embeds to attach

options
System.Collections.Generic.IEnumerable

Poll options.

auth
bool

true to check if the user has permission to insert the Post, otherwise false.

Returns

Post

The inserted Post