Esempio n. 1
0
        private video_limits GetUploadLimits(bool isAsync, GetUploadLimitsCallback callback, Object state)
        {
            var parameterList = new Dictionary <string, string> {
                { "method", "facebook.video.getUploadLimits" }
            };

            if (isAsync)
            {
                SendRequestAsync(parameterList, new FacebookCallCompleted <video_limits>(callback), state);
                return(null);
            }

            return(SendRequest <video_limits>(parameterList, true));
        }
        private video_limits GetUploadLimits(bool isAsync, GetUploadLimitsCallback callback, Object state)
        {
            var parameterList = new Dictionary<string, string> { { "method", "facebook.video.getUploadLimits" } };

            if (isAsync)
            {
                SendRequestAsync(parameterList, new FacebookCallCompleted<video_limits>(callback), state);
                return null;
            }

            return SendRequest<video_limits>(parameterList, true);
        }
 /// <summary>
 /// Returns the file size and length limits for a video that the current user can upload through your application.
 /// </summary>
 /// <example>
 /// <code>
 /// private static void RunDemoAsync()
 /// {
 ///     Api api = new Api(new DesktopSession(Constants.ApplicationKey, Constants.ApplicationSecret, Constants.ApplicationSecret, Constants.SessionKey));
 ///     api.Video.GetUploadLimitsAsync(AsyncDemoCompleted, null);
 /// }
 ///
 /// private static void AsyncDemoCompleted(video_limits result, Object state, FacebookException e)
 /// {
 ///     var actual = result;
 /// }
 /// </code>
 /// </example>
 /// <param name="callback">The AsyncCallback delegate</param>
 /// <param name="state">An object containing state information for this asynchronous request</param>        
 /// <returns>This method returns a video_limits object length and size keys mapped to the number of seconds and bytes, respectively.</returns>
 public void GetUploadLimitsAsync(GetUploadLimitsCallback callback, Object state)
 {
     GetUploadLimits(true, callback, state);
 }
Esempio n. 4
0
 /// <summary>
 /// Returns the file size and length limits for a video that the current user can upload through your application.
 /// </summary>
 /// <example>
 /// <code>
 /// private static void RunDemoAsync()
 /// {
 ///     Api api = new Api(new DesktopSession(Constants.ApplicationKey, Constants.ApplicationSecret, Constants.ApplicationSecret, Constants.SessionKey));
 ///     api.Video.GetUploadLimitsAsync(AsyncDemoCompleted, null);
 /// }
 ///
 /// private static void AsyncDemoCompleted(video_limits result, Object state, FacebookException e)
 /// {
 ///     var actual = result;
 /// }
 /// </code>
 /// </example>
 /// <param name="callback">The AsyncCallback delegate</param>
 /// <param name="state">An object containing state information for this asynchronous request</param>
 /// <returns>This method returns a video_limits object length and size keys mapped to the number of seconds and bytes, respectively.</returns>
 public void GetUploadLimitsAsync(GetUploadLimitsCallback callback, Object state)
 {
     GetUploadLimits(true, callback, state);
 }