예제 #1
0
        /// <summary>
        /// Send multiple events data to Atom server.
        /// </summary>
        /// <param name="stream">
        /// <see cref="string"/> for name of stream
        /// </param>
        /// <param name="data">
        /// <see cref="string"/> for request data
        /// </param>
        /// <param name="method">
        /// <see cref="HttpMethod"/> for type of request
        /// </param>
        /// <param name="callback">
        /// <see cref="string"/> for reponse data
        /// </param>
        /// <param name="parrentGameObject">
        /// <see cref="GameObject"/> for callback calling
        /// </param>
        public void PutEvents(string stream, List <string> data, string callback = null,
                              GameObject parentGameObject = null)
        {
            string json = IronSourceAtomUtils.ListToJson(data);

            PutEvents(stream, json, callback, parentGameObject);
        }
예제 #2
0
        /// <summary>
        /// Send multiple events data to Atom server.
        /// </summary>
        /// <param name="stream">
        /// <see cref="string"/> for name of stream
        /// </param>
        /// <param name="data">
        /// <see cref="string"/> for request data
        /// </param>
        /// <param name="method">
        /// <see cref="HttpMethod"/> for type of request
        /// </param>
        /// <param name="callback">
        /// <see cref="Action<Response>"/> for reponse data
        /// </param>
        public void PutEvents(string stream, List <string> data, Action <Response> callback = null)
        {
            string json = IronSourceAtomUtils.ListToJson(data);

            PutEvents(stream, json, callback);
        }
예제 #3
0
 /// <summary>
 /// Gets the string data.
 /// </summary>
 /// <returns>
 /// The string data.
 /// </returns>
 public string GetStringData()
 {
     return(IronSourceAtomUtils.ListToJson(bulkData_));
 }