简体   繁体   English

提要和活动之间的区别

[英]Difference between a feed and an activity

I am a novice and I am trying to implement getstream io in one of my project. 我是新手,我正在尝试在我的一个项目中实现getstream io。 I understand the concept of feed groups such as Flat feed, Aggregated feed etc. But I am finding it difficult to understand what a feed and an activity are. 我了解Feed组(如固定Feed,聚合Feed等)的概念。但是我发现很难理解什么是Feed和一项活动。 The docs does not explain the concept to a novice and I tried googling it but found none. 该文档没有向新手解释此概念,我尝试对其进行谷歌搜索,但没有发现。 Any ideas guys? 有想法吗?

Getstream IO terminology: Getstream IO术语:

Activity 活动

Activities tell the story of a person performing an action , every activity consists of an actor (the user undertaking the action), an object (the subject of this activity, eg a tweet), verb (the type of action that was undertaken, eg 'tweet'). 活动讲述了一个人执行某个动作的故事,每个活动都包括一个演员 (进行该动作的用户),一个对象 (该活动的主题,例如一条推文), 动词 (所进行的动作的类型,例如'鸣叫')。 One activity is added to a feed, and all the feeds following this feed receive the activity. 一个活动已添加到Feed中,该Feed之后的所有Feed都收到该活动。

Feed 饲料

A feed is a list of activities ordered by the time they were created, these can either be activities that were added directly to this feed, or added to any of the feeds this feed follows. 提要是按创建时间排序的活动列表,这些活动可以是直接添加到此提要的活动,也可以是添加到该提要遵循的任何提要的活动。

In most applications a user will have a feed on which he adds activities. 在大多数应用程序中,用户将具有一个供稿,供其添加活动。 And another feed for consuming activities of users he follows. 他还介绍了另一个用于消费用户活动的提要。 The documentation explains this as follows: 该文档对此进行了如下解释:

We recommend that you create different feed groups for adding activities, and for consuming activities. 我们建议您创建不同的供稿组以添加活动和消费活动。

Feed Group 饲料组

To separate these consumer and producer feeds you can group feeds together. 要分离这些消费者和生产者提要,可以将提要分组在一起。 For instance, all producer feeds can be contained under the feed group 'user'. 例如,所有生产者提要都可以包含在提要组“用户”下。 And all the feeds used for consumption are contained under the feed group 'timeline'. 所有用于消费的提要都包含在提要组“时间轴”下。 So a feed group contains many feeds. 因此,提要组包含许多提要。

Feed Types 资讯提供类型

A feed group has a feed type that determines how the feeds inside this feed group behave. 提要组的提要类型确定该提要组中的提要的行为。 The default type is flat , these feeds are the only feeds that can be followed and are useful as producer feeds (our 'user' feed example). 默认类型为flat ,这些提要是唯一可以遵循的提要,并且可用作生产者提要(我们的“用户”提要示例)。 Aggregated feeds can be used to consume activities in an "aggregated" manner, this means you can define certain rules to group together multiple activities (for instance activities with the same verb). 聚合提要可用于以“聚合”方式消费活动,这意味着您可以定义某些规则以将多个活动分组在一起(例如,具有相同动词的活动)。 The last feed type is the notification feed which is an aggregated feed with some additional functionality to mark activities as seen and read. 最后一种提要类型是通知提要,它是一种汇总的提要,具有一些附加功能,可将活动标记为可见和已读。

get started With this information in mind try out our get started tutorial to get a better feeling for how the API works. 入门记住这些信息,请尝试我们的入门教程 ,以更好地了解API的工作方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM