users.setStatus(), users.hasAppPermission() return value

Aug 27, 2008 at 10:45 PM
In the RC2 release, users.setStatus() and users.hasAppPermission() ( and others methods ? ) will return true if response is null or empty. Is that just a mistake ?

        public bool setStatus(string status, bool status_includes_verb)
        {
            var parameterList = new Dictionary<string, string>
                                    {
                                        {"method", "facebook.users.setStatus"},
                                        {"status", status},
                                        {"status_includes_verb", status_includes_verb.ToString()}
                                    };

            var response = _api.SendRequest(parameterList);
            return string.IsNullOrEmpty(response) || users_setStatus_response.Parse(response).TypedValue;
        }


        public bool hasAppPermission(Enums.Extended_Permissions ext_perm)
        {
            var parameterList = new Dictionary<string, string>
                                    {
                                        {"method", "facebook.users.hasAppPermission"},
                                        {"ext_perm", ext_perm.ToString()}
                                    };

            var response = _api.SendRequest(parameterList);
            return string.IsNullOrEmpty(response) || users_hasAppPermission_response.Parse(response).TypedValue;
        }

Thanks,

pk