def updatewatermark(self, conv_id, read_timestamp): """Update the watermark (read timestamp) for a conversation. Raises hangups.NetworkError if the request fails. """ request = hangouts_pb2.UpdateWatermarkRequest( request_header=self._get_request_header_pb(), conversation_id=hangouts_pb2.ConversationId(id=conv_id), last_read_timestamp=parsers.to_timestamp(read_timestamp), ) response = hangouts_pb2.UpdateWatermarkResponse() yield from self._pb_request('conversations/updatewatermark', request, response) return response
def update_watermark(self, update_watermark_request): """Update the watermark (read timestamp) of a conversation.""" response = hangouts_pb2.UpdateWatermarkResponse() yield from self._pb_request('conversations/updatewatermark', update_watermark_request, response) return response