Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go/chat/v1/gamingplatform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ package chatv1
const InitiateChatType = "Chat.InitiateChat.v1"
const InitiateChatResponseType = "Chat.InitiateChatResponse.v1"
const MessageWrittenType = "Chat.MessageWritten.v1"
const WriteMessageType = "Chat.WriteMessage.v1"
const WriteMessageResponseType = "Chat.WriteMessageResponse.v1"
128 changes: 121 additions & 7 deletions go/chat/v1/messaging.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions php/GamingPlatform/Api/Chat/V1/ChatV1.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,24 @@ public static function createMessageWritten(
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public const string WriteMessageType = 'Chat.WriteMessage.v1';
public static function createWriteMessage(
?string $data = null
): WriteMessage {
static $template;
$template ??= new WriteMessage();
$message = clone $template;
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public const string WriteMessageResponseType = 'Chat.WriteMessageResponse.v1';
public static function createWriteMessageResponse(
?string $data = null
): WriteMessageResponse {
static $template;
$template ??= new WriteMessageResponse();
$message = clone $template;
if ($data !== null) $message->mergeFromString($data);
return $message;
}
}
22 changes: 22 additions & 0 deletions php/GamingPlatform/Api/Chat/V1/ChatV1Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,26 @@ public static function createMessageWritten(
return $message;
}

/** @deprecated */
public static function createWriteMessage(
string $data
): \GamingPlatform\Api\Chat\V1\WriteMessage {
static $template;
$template ??= new \GamingPlatform\Api\Chat\V1\WriteMessage();
$message = clone $template;
$message->mergeFromString($data);
return $message;
}

/** @deprecated */
public static function createWriteMessageResponse(
string $data
): \GamingPlatform\Api\Chat\V1\WriteMessageResponse {
static $template;
$template ??= new \GamingPlatform\Api\Chat\V1\WriteMessageResponse();
$message = clone $template;
$message->mergeFromString($data);
return $message;
}

}
150 changes: 150 additions & 0 deletions php/GamingPlatform/Api/Chat/V1/WriteMessage.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading