PddLogisticsCsMessageSendRequest.php 1.9 KB
Newer Older
李光春's avatar
李光春 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
<?php
namespace Com\Pdd\Pop\Sdk\Api\Request;

use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;

class PddLogisticsCsMessageSendRequest extends PopBaseHttpRequest
{
    public function __construct()
	{

	}
	/**
	* @JsonProperty(String, "session_id")
	*/
	private $sessionId;

	/**
	* @JsonProperty(String, "wp_session_id")
	*/
	private $wpSessionId;

	/**
	* @JsonProperty(String, "action_time")
	*/
	private $actionTime;

	/**
	* @JsonProperty(Integer, "message_type")
	*/
	private $messageType;

	/**
	* @JsonProperty(String, "text")
	*/
	private $text;

	/**
	* @JsonProperty(String, "attach")
	*/
	private $attach;

	/**
	* @JsonProperty(String, "preview")
	*/
	private $preview;

	protected function setUserParams(&$params)
	{
		$this->setUserParam($params, "session_id", $this->sessionId);
		$this->setUserParam($params, "wp_session_id", $this->wpSessionId);
		$this->setUserParam($params, "action_time", $this->actionTime);
		$this->setUserParam($params, "message_type", $this->messageType);
		$this->setUserParam($params, "text", $this->text);
		$this->setUserParam($params, "attach", $this->attach);
		$this->setUserParam($params, "preview", $this->preview);

	}

	public function getVersion()
	{
		return "V1";
	}

	public function getDataType()
	{
		return "JSON";
	}

	public function getType()
	{
		return "pdd.logistics.cs.message.send";
	}

	public function setSessionId($sessionId)
	{
		$this->sessionId = $sessionId;
	}

	public function setWpSessionId($wpSessionId)
	{
		$this->wpSessionId = $wpSessionId;
	}

	public function setActionTime($actionTime)
	{
		$this->actionTime = $actionTime;
	}

	public function setMessageType($messageType)
	{
		$this->messageType = $messageType;
	}

	public function setText($text)
	{
		$this->text = $text;
	}

	public function setAttach($attach)
	{
		$this->attach = $attach;
	}

	public function setPreview($preview)
	{
		$this->preview = $preview;
	}

}