⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skype4py.callchannel-pysrc.html

📁 基于python的skype的API的说明文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Module Skype4Py.errors=Skype4Py.errors-module.html"><a title="Skype4Py.errors" class="py-name" href="#" onclick="return doclink('link-2', 'errors', 'link-2');">errors</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Class Skype4Py.errors.ISkypeError=Skype4Py.errors.ISkypeError-class.html"><a title="Skype4Py.errors.ISkypeError" class="py-name" href="#" onclick="return doclink('link-3', 'ISkypeError', 'link-3');">ISkypeError</a></tt> </tt><a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt><a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt><a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"> </tt><a name="ICallChannel"></a><div id="ICallChannel-def"><a name="L10"></a><tt class="py-lineno"> 10</tt> <a class="py-toggle" href="#" id="ICallChannel-toggle" onclick="return toggle('ICallChannel');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannel-class.html">ICallChannel</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannel-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ICallChannel-expanded"><a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line">    <tt class="py-docstring">'''Represents a call channel.</tt> </tt><a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt><a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"> </tt><a name="ICallChannel.__init__"></a><div id="ICallChannel.__init__-def"><a name="L14"></a><tt class="py-lineno"> 14</tt> <a class="py-toggle" href="#" id="ICallChannel.__init__-toggle" onclick="return toggle('ICallChannel.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannel-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">Manager</tt><tt class="py-op">,</tt> <tt class="py-param">Call</tt><tt class="py-op">,</tt> <tt class="py-param">Stream</tt><tt class="py-op">,</tt> <tt class="py-param">Type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannel.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ICallChannel.__init__-expanded"><a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">        <tt class="py-docstring">'''__init__.</tt> </tt><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">        @param Manager: Manager</tt> </tt><a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">        @type Manager: L{ICallChannelManager}</tt> </tt><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">        @param Call: Call</tt> </tt><a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">        @type Call: L{ICall}</tt> </tt><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">        @param Stream: Stream</tt> </tt><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-docstring">        @type Stream: L{IApplicationStream}</tt> </tt><a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring">        @param Type: Type</tt> </tt><a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">        @type Type: L{Call channel type&lt;enums.cctUnknown&gt;}</tt> </tt><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt><a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Manager</tt> <tt class="py-op">=</tt> <tt id="link-4" class="py-name" targets="Variable Skype4Py.callchannel.ICallChannel.Manager=Skype4Py.callchannel.ICallChannel-class.html#Manager"><a title="Skype4Py.callchannel.ICallChannel.Manager" class="py-name" href="#" onclick="return doclink('link-4', 'Manager', 'link-4');">Manager</a></tt> </tt><a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Call</tt> <tt class="py-op">=</tt> <tt id="link-5" class="py-name" targets="Variable Skype4Py.callchannel.ICallChannel.Call=Skype4Py.callchannel.ICallChannel-class.html#Call,Method Skype4Py.skype.ISkype.Call()=Skype4Py.skype.ISkype-class.html#Call"><a title="Skype4Py.callchannel.ICallChannel.CallSkype4Py.skype.ISkype.Call" class="py-name" href="#" onclick="return doclink('link-5', 'Call', 'link-5');">Call</a></tt> </tt><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Stream</tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name" targets="Variable Skype4Py.callchannel.ICallChannel.Stream=Skype4Py.callchannel.ICallChannel-class.html#Stream"><a title="Skype4Py.callchannel.ICallChannel.Stream" class="py-name" href="#" onclick="return doclink('link-6', 'Stream', 'link-6');">Stream</a></tt> </tt><a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Type</tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name" targets="Variable Skype4Py.call.ICall.Type=Skype4Py.call.ICall-class.html#Type,Variable Skype4Py.callchannel.ICallChannel.Type=Skype4Py.callchannel.ICallChannel-class.html#Type,Variable Skype4Py.chat.IChat.Type=Skype4Py.chat.IChat-class.html#Type,Variable Skype4Py.chat.IChatMessage.Type=Skype4Py.chat.IChatMessage-class.html#Type,Variable Skype4Py.filetransfer.IFileTransfer.Type=Skype4Py.filetransfer.IFileTransfer-class.html#Type,Variable Skype4Py.sms.ISmsMessage.Type=Skype4Py.sms.ISmsMessage-class.html#Type,Variable Skype4Py.user.IGroup.Type=Skype4Py.user.IGroup-class.html#Type,Variable Skype4Py.voicemail.IVoicemail.Type=Skype4Py.voicemail.IVoicemail-class.html#Type"><a title="Skype4Py.call.ICall.TypeSkype4Py.callchannel.ICallChannel.TypeSkype4Py.chat.IChat.TypeSkype4Py.chat.IChatMessage.TypeSkype4Py.filetransfer.IFileTransfer.TypeSkype4Py.sms.ISmsMessage.TypeSkype4Py.user.IGroup.TypeSkype4Py.voicemail.IVoicemail.Type" class="py-name" href="#" onclick="return doclink('link-7', 'Type', 'link-7');">Type</a></tt> </tt></div><a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"> </tt><a name="ICallChannel.__repr__"></a><div id="ICallChannel.__repr__-def"><a name="L31"></a><tt class="py-lineno"> 31</tt> <a class="py-toggle" href="#" id="ICallChannel.__repr__-toggle" onclick="return toggle('ICallChannel.__repr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannel-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannel.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ICallChannel.__repr__-expanded"><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'&lt;%s with Manager=%s, Call=%s, Stream=%s&gt;'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">object</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method Skype4Py.API.ICommand.__repr__()=Skype4Py.API.ICommand-class.html#__repr__,Method Skype4Py.API.darwin.CFNumber.__repr__()=Skype4Py.API.darwin.CFNumber-class.html#__repr__,Method Skype4Py.API.darwin.CFString.__repr__()=Skype4Py.API.darwin.CFString-class.html#__repr__,Method Skype4Py.API.darwin.CFType.__repr__()=Skype4Py.API.darwin.CFType-class.html#__repr__,Method Skype4Py.application.IApplication.__repr__()=Skype4Py.application.IApplication-class.html#__repr__,Method Skype4Py.application.IApplicationStream.__repr__()=Skype4Py.application.IApplicationStream-class.html#__repr__,Method Skype4Py.call.ICall.__repr__()=Skype4Py.call.ICall-class.html#__repr__,Method Skype4Py.call.IConference.__repr__()=Skype4Py.call.IConference-class.html#__repr__,Method Skype4Py.call.IParticipant.__repr__()=Skype4Py.call.IParticipant-class.html#__repr__,Method Skype4Py.callchannel.ICallChannel.__repr__()=Skype4Py.callchannel.ICallChannel-class.html#__repr__,Method Skype4Py.chat.IChat.__repr__()=Skype4Py.chat.IChat-class.html#__repr__,Method Skype4Py.chat.IChatMember.__repr__()=Skype4Py.chat.IChatMember-class.html#__repr__,Method Skype4Py.chat.IChatMessage.__repr__()=Skype4Py.chat.IChatMessage-class.html#__repr__,Method Skype4Py.client.IPluginEvent.__repr__()=Skype4Py.client.IPluginEvent-class.html#__repr__,Method Skype4Py.client.IPluginMenuItem.__repr__()=Skype4Py.client.IPluginMenuItem-class.html#__repr__,Method Skype4Py.filetransfer.IFileTransfer.__repr__()=Skype4Py.filetransfer.IFileTransfer-class.html#__repr__,Method Skype4Py.sms.ISmsChunk.__repr__()=Skype4Py.sms.ISmsChunk-class.html#__repr__,Method Skype4Py.sms.ISmsMessage.__repr__()=Skype4Py.sms.ISmsMessage-class.html#__repr__,Method Skype4Py.sms.ISmsTarget.__repr__()=Skype4Py.sms.ISmsTarget-class.html#__repr__,Method Skype4Py.user.IGroup.__repr__()=Skype4Py.user.IGroup-class.html#__repr__,Method Skype4Py.user.IUser.__repr__()=Skype4Py.user.IUser-class.html#__repr__,Method Skype4Py.voicemail.IVoicemail.__repr__()=Skype4Py.voicemail.IVoicemail-class.html#__repr__"><a title="Skype4Py.API.ICommand.__repr__Skype4Py.API.darwin.CFNumber.__repr__Skype4Py.API.darwin.CFString.__repr__Skype4Py.API.darwin.CFType.__repr__Skype4Py.application.IApplication.__repr__Skype4Py.application.IApplicationStream.__repr__Skype4Py.call.ICall.__repr__Skype4Py.call.IConference.__repr__Skype4Py.call.IParticipant.__repr__Skype4Py.callchannel.ICallChannel.__repr__Skype4Py.chat.IChat.__repr__Skype4Py.chat.IChatMember.__repr__Skype4Py.chat.IChatMessage.__repr__Skype4Py.client.IPluginEvent.__repr__Skype4Py.client.IPluginMenuItem.__repr__Skype4Py.filetransfer.IFileTransfer.__repr__Skype4Py.sms.ISmsChunk.__repr__Skype4Py.sms.ISmsMessage.__repr__Skype4Py.sms.ISmsTarget.__repr__Skype4Py.user.IGroup.__repr__Skype4Py.user.IUser.__repr__Skype4Py.voicemail.IVoicemail.__repr__" class="py-name" href="#" onclick="return doclink('link-8', '__repr__', 'link-8');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="Skype4Py.callchannel.ICallChannel.Manager" class="py-name" href="#" onclick="return doclink('link-9', 'Manager', 'link-4');">Manager</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="Skype4Py.callchannel.ICallChannel.CallSkype4Py.skype.ISkype.Call" class="py-name" href="#" onclick="return doclink('link-10', 'Call', 'link-5');">Call</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="Skype4Py.callchannel.ICallChannel.Stream" class="py-name" href="#" onclick="return doclink('link-11', 'Stream', 'link-6');">Stream</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt></div><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"> </tt><a name="ICallChannel.SendTextMessage"></a><div id="ICallChannel.SendTextMessage-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="ICallChannel.SendTextMessage-toggle" onclick="return toggle('ICallChannel.SendTextMessage');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannel-class.html#SendTextMessage">SendTextMessage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">Text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannel.SendTextMessage-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ICallChannel.SendTextMessage-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-docstring">'''Sends text message over channel.</tt> </tt><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-docstring">        @param Text: Text</tt> </tt><a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-docstring">        @type Text: unicode</tt> </tt><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Type</tt> <tt class="py-op">==</tt> <tt id="link-12" class="py-name" targets="Variable Skype4Py.enums.cctReliable=Skype4Py.enums-module.html#cctReliable"><a title="Skype4Py.enums.cctReliable" class="py-name" href="#" onclick="return doclink('link-12', 'cctReliable', 'link-12');">cctReliable</a></tt><tt class="py-op">:</tt> </tt><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Stream</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method Skype4Py.application.IApplicationStream.Write()=Skype4Py.application.IApplicationStream-class.html#Write"><a title="Skype4Py.application.IApplicationStream.Write" class="py-name" href="#" onclick="return doclink('link-13', 'Write', 'link-13');">Write</a></tt><tt class="py-op">(</tt><tt id="link-14" class="py-name" targets="Variable Skype4Py.callchannel.ICallChannelMessage.Text=Skype4Py.callchannel.ICallChannelMessage-class.html#Text,Variable Skype4Py.sms.ISmsChunk.Text=Skype4Py.sms.ISmsChunk-class.html#Text"><a title="Skype4Py.callchannel.ICallChannelMessage.Text

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -