]> git.stg.codes - stg.git/commitdiff
Rename some XML-RPC API methods
authorMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 15:29:04 +0000 (18:29 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 15:29:04 +0000 (18:29 +0300)
doc/xmlrpc-doc/API-messages.xml
doc/xmlrpc-doc/API-user.xml
projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp

index 0a16d5247beb08b56bc00741ccbc8e5edc934641..5df928314994d8b33e48879e085b720032cafd26 100644 (file)
@@ -2,18 +2,18 @@
 <chapter xmlns="http://docbook.org/ns/docbook">
     <title>Управление сообщениями пользователю</title>
     <para>В этом разделе собраны вызовы API для отправки сообщений пользователям.</para>
-    <refentry id="stargazer.send_message">
+    <refentry id="stargazer.send_user_message">
         <refmeta>
-            <refentrytitle>stargazer.send_message</refentrytitle>
+            <refentrytitle>stargazer.send_user_message</refentrytitle>
         </refmeta>
         <refnamediv>
-            <refname>stargazer.send_message</refname>
+            <refname>stargazer.send_user_message</refname>
             <refpurpose>Отправляет сообщение пользователям</refpurpose>
         </refnamediv>
         <refsynopsisdiv>
             <funcsynopsis>
                 <funcprototype>
-                    <funcdef><function>stargazer.send_message</function></funcdef>
+                    <funcdef><function>stargazer.send_user_message</function></funcdef>
                     <paramdef>string <parameter>cookie</parameter></paramdef>
                     <paramdef>array of strings <parameter>logins</parameter></paramdef>
                     <paramdef>struct <parameter>info</parameter></paramdef>
@@ -22,7 +22,7 @@
         </refsynopsisdiv>
         <refsect1>
             <title>Description</title>
-            <para>Метод <function>stargazer.send_message</function> отправляет сообщение пользователям, логины которых перечислены в списке.</para>
+            <para>Метод <function>stargazer.send_user_message</function> отправляет сообщение пользователям, логины которых перечислены в списке.</para>
             <variablelist>
                 <varlistentry>
                     <term>string <parameter>cookie</parameter></term>
index 4e075971b7ded9c90ea9becdd4720a956fd7a56a..fac4f2be8b597e2d3a7354b99842cd7d23a0e021 100644 (file)
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
                 <link linkend="stargazer.get_user"><function>stargazer.get_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
                 <link linkend="stargazer.get_user"><function>stargazer.get_user</function></link>,
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
                 <link linkend="stargazer.get_user"><function>stargazer.get_user</function></link>,
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
     </refentry>
-    <refentry id="stargazer.add_cash">
+    <refentry id="stargazer.add_user_cash">
         <refmeta>
-            <refentrytitle>stargazer.add_cash</refentrytitle>
+            <refentrytitle>stargazer.add_user_cash</refentrytitle>
         </refmeta>
         <refnamediv>
-            <refname>stargazer.add_cash</refname>
+            <refname>stargazer.add_user_cash</refname>
             <refpurpose>Добавление денег на счет пользователя</refpurpose>
         </refnamediv>
         <refsynopsisdiv>
             <funcsynopsis>
                 <funcprototype>
-                    <funcdef><function>stargazer.add_cash</function></funcdef>
+                    <funcdef><function>stargazer.add_user_cash</function></funcdef>
                     <paramdef>string <parameter>cookie</parameter></paramdef>
                     <paramdef>string <parameter>login</parameter></paramdef>
                     <paramdef>double <parameter>amount</parameter></paramdef>
         </refsynopsisdiv>
         <refsect1>
             <title>Description</title>
-            <para>Метод <function>stargazer.add_cash</function> позволяет добавить деньги на счет указанного пользователя.</para>
+            <para>Метод <function>stargazer.add_user_cash</function> позволяет добавить деньги на счет указанного пользователя.</para>
             <variablelist>
                 <varlistentry>
                     <term>string <parameter>cookie</parameter></term>
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
     </refentry>
-    <refentry id="stargazer.set_cash">
+    <refentry id="stargazer.set_user_cash">
         <refmeta>
-            <refentrytitle>stargazer.set_cash</refentrytitle>
+            <refentrytitle>stargazer.set_user_cash</refentrytitle>
         </refmeta>
         <refnamediv>
-            <refname>stargazer.set_cash</refname>
+            <refname>stargazer.set_user_cash</refname>
             <refpurpose>Установка состояния счета пользователя</refpurpose>
         </refnamediv>
         <refsynopsisdiv>
             <funcsynopsis>
                 <funcprototype>
-                    <funcdef><function>stargazer.set_cash</function></funcdef>
+                    <funcdef><function>stargazer.set_user_cash</function></funcdef>
                     <paramdef>string <parameter>cookie</parameter></paramdef>
                     <paramdef>string <parameter>login</parameter></paramdef>
                     <paramdef>double <parameter>cash</parameter></paramdef>
         </refsynopsisdiv>
         <refsect1>
             <title>Description</title>
-            <para>Метод <function>stargazer.set_cash</function> позволяет установить состояние счета пользователя.</para>
+            <para>Метод <function>stargazer.set_user_cash</function> позволяет установить состояние счета пользователя.</para>
             <variablelist>
                 <varlistentry>
                     <term>string <parameter>cookie</parameter></term>
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
     </refentry>
-    <refentry id="stargazer.tariff_change">
+    <refentry id="stargazer.chg_user_tariff">
         <refmeta>
-            <refentrytitle>stargazer.tariff_change</refentrytitle>
+            <refentrytitle>stargazer.chg_user_tariff</refentrytitle>
         </refmeta>
         <refnamediv>
-            <refname>stargazer.tariff_change</refname>
+            <refname>stargazer.chg_user_tariff</refname>
             <refpurpose>Изменение тарифного плана пользователя</refpurpose>
         </refnamediv>
         <refsynopsisdiv>
             <funcsynopsis>
                 <funcprototype>
-                    <funcdef><function>stargazer.tariff_change</function></funcdef>
+                    <funcdef><function>stargazer.chg_user_tariff</function></funcdef>
                     <paramdef>string <parameter>cookie</parameter></paramdef>
                     <paramdef>string <parameter>login</parameter></paramdef>
                     <paramdef>string <parameter>tariff</parameter></paramdef>
         </refsynopsisdiv>
         <refsect1>
             <title>Description</title>
-            <para>Метод <function>stargazer.tariff_change</function> позволяет изменить тарифный план пользователя или запланировать его изменение на начало нового месяца.</para>
+            <para>Метод <function>stargazer.chg_user_tariff</function> позволяет изменить тарифный план пользователя или запланировать его изменение на начало нового месяца.</para>
             <variablelist>
                 <varlistentry>
                     <term>string <parameter>cookie</parameter></term>
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>
                 <link linkend="stargazer.get_online_ips"><function>stargazer.get_online_ips</function></link>
             </para>
         </refsect1>
                 <link linkend="stargazer.add_user"><function>stargazer.add_user</function></link>,
                 <link linkend="stargazer.chg_user"><function>stargazer.chg_user</function></link>,
                 <link linkend="stargazer.del_user"><function>stargazer.del_user</function></link>,
-                <link linkend="stargazer.add_cash"><function>stargazer.add_cash</function></link>,
-                <link linkend="stargazer.set_cash"><function>stargazer.set_cash</function></link>
-                <link linkend="stargazer.tariff_change"><function>stargazer.tariff_change</function></link>
+                <link linkend="stargazer.add_user_cash"><function>stargazer.add_user_cash</function></link>,
+                <link linkend="stargazer.set_user_cash"><function>stargazer.set_user_cash</function></link>
+                <link linkend="stargazer.chg_user_tariff"><function>stargazer.chg_user_tariff</function></link>
             </para>
         </refsect1>
     </refentry>
index a5467aae23243bd4cb01e6a94b1618a5e77074e1..6d09a2d218bab194ef9d7c5c766575ada89978cf 100644 (file)
@@ -347,7 +347,7 @@ xmlrpc_c::methodPtr const methodAddCashPtr(new METHOD_USER_CASH_ADD(
             store,
             users
             ));
-rpcRegistry.addMethod("stargazer.add_cash", methodAddCashPtr);
+rpcRegistry.addMethod("stargazer.add_user_cash", methodAddCashPtr);
 
 xmlrpc_c::methodPtr const methodSetCashPtr(new METHOD_USER_CASH_SET(
             this,
@@ -355,7 +355,7 @@ xmlrpc_c::methodPtr const methodSetCashPtr(new METHOD_USER_CASH_SET(
             store,
             users
             ));
-rpcRegistry.addMethod("stargazer.set_cash", methodSetCashPtr);
+rpcRegistry.addMethod("stargazer.set_user_cash", methodSetCashPtr);
 
 xmlrpc_c::methodPtr const methodTariffChangePtr(new METHOD_USER_TARIFF_CHANGE(
             this,
@@ -364,7 +364,7 @@ xmlrpc_c::methodPtr const methodTariffChangePtr(new METHOD_USER_TARIFF_CHANGE(
             store,
             users
             ));
-rpcRegistry.addMethod("stargazer.tariff_change", methodTariffChangePtr);
+rpcRegistry.addMethod("stargazer.chg_user_tariff", methodTariffChangePtr);
 
 xmlrpc_c::methodPtr const methodGetTariffPtr(new METHOD_TARIFF_GET(
             this,
@@ -434,7 +434,7 @@ xmlrpc_c::methodPtr const methodSendMessagePtr(new METHOD_MESSAGE_SEND(
             this,
             users
             ));
-rpcRegistry.addMethod("stargazer.send_message", methodSendMessagePtr);
+rpcRegistry.addMethod("stargazer.send_user_message", methodSendMessagePtr);
 
 xmlrpc_c::methodPtr const methodGetOnlinIPsPtr(new METHOD_GET_ONLINE_IPS(
             this,