Google Chat
Project Connectors/Communication/GoogleChatDataSource/. GoogleChatDataSource : WebAPIDataSource. Namespace TheTechIdea.Beep.Connectors.Communication.GoogleChat (…GoogleChat.Models). DataSourceType.GoogleChat, DatasourceCategory.Connector.
Entities
The static Map lists Chat API resources: spaces, messages, members, and related paths with required filters such as space_name. Align base URL and bearer token with Google’s Chat API host.
Source & IDataSource
Implementation: Connectors/Communication/GoogleChatDataSource/GoogleChatDataSource.cs — GoogleChatDataSource : WebAPIDataSource. Read helpers call GetEntityAsync synchronously (.GetAwaiter().GetResult()) and attach the datasource to each entity; create/update helpers call PostAsync, PutAsync, or PatchAsync on documented path templates.
Command methods (CommandAttribute)
Name | Method | Returns | ObjectType |
|---|---|---|---|
| GetSpaces | GetSpaces() | IEnumerable<GoogleChatSpace> | GoogleChatSpace |
| GetSpace | GetSpace(string spaceName) | IEnumerable<GoogleChatSpace> | GoogleChatSpace |
| GetSpaceMessages | GetSpaceMessages(string spaceName) | IEnumerable<GoogleChatMessage> | GoogleChatMessage |
| GetMessage | GetMessage(string spaceName, string messageName) | IEnumerable<GoogleChatMessage> | GoogleChatMessage |
| GetSpaceMembers | GetSpaceMembers(string spaceName) | IEnumerable<GoogleChatMember> | GoogleChatMember |
| GetUserSpaces | GetUserSpaces() | IEnumerable<GoogleChatUserSpace> | GoogleChatUserSpace |
| GetUserMemberships | GetUserMemberships(string userName) | IEnumerable<GoogleChatUserMembership> | GoogleChatUserMembership |
| CreateMessageAsync | CreateMessageAsync(GoogleChatMessage message) | Task<IEnumerable<GoogleChatMessage>> | GoogleChatMessage |
| CreateSpaceAsync | CreateSpaceAsync(GoogleChatSpace space) | Task<IEnumerable<GoogleChatSpace>> | GoogleChatSpace |
| UpdateMessageAsync | UpdateMessageAsync(GoogleChatMessage message) | Task<IEnumerable<GoogleChatMessage>> | GoogleChatMessage |
| UpdateSpaceAsync | UpdateSpaceAsync(GoogleChatSpace space) | Task<IEnumerable<GoogleChatSpace>> | GoogleChatSpace |
Model types
TheTechIdea.Beep.Connectors.Communication.GoogleChat.Models — GoogleChatSpace, GoogleChatMessage, GoogleChatMember, GoogleChatUser, GoogleChatUserSpace, GoogleChatUserMembership, GoogleChatMessageAttachment, GoogleChatMessageThread, GoogleChatMediaLink, GoogleChatSpaceDetails, GoogleChatCardWithId, and GoogleChatEntityBase in Models.cs.
Connection
Source summary: set WebAPIConnectionProperties.Url to the Google Chat API base and configure the Authorization header (service account or user OAuth, per your deployment).