Ignore:
Timestamp:
Oct 11, 2010, 8:04:34 PM (14 years ago)
Author:
bayral
Message:

Connection à partir de wpf

Location:
extensions/PiwigoLib/PiwigoLib
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgAddRequestProxyResponse.cs

    r7149 r7160  
    1010    [Serializable()]
    1111    [XmlRoot(ElementName = "rsp")]
    12     internal class PwgAddRequestProxyResponse : PwgBaseProxyReponse
     12    public class PwgAddRequestProxyResponse : PwgBaseProxyReponse
    1313    {
    1414        [XmlElement(ElementName="info")]
    15         internal String Message { get; set; }
     15        public String Message { get; set; }
    1616        [XmlElement(ElementName = "id")]
    17         internal Int32 NewId { get; set; }
     17        public Int32 NewId { get; set; }
    1818
    1919    }
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgBaseProxyReponse.cs

    r7149 r7160  
    1010    [Serializable()]
    1111    [XmlRoot(ElementName = "err")]
    12     internal class PwgBaseProxyReponseError
     12    public class PwgBaseProxyReponseError
    1313    {
    1414        [XmlAttribute(AttributeName = "code")]
    15         internal Int32 Code { get; set; }
     15        public Int32 Code { get; set; }
    1616
    1717        [XmlAttribute(AttributeName = "msg")]
    18         internal String Message { get; set; }
     18        public String Message { get; set; }
    1919    }
    2020
     
    2222    [Serializable()]
    2323    [XmlRoot(ElementName = "rsp")]
    24     internal abstract class PwgBaseProxyReponse
     24    public abstract class PwgBaseProxyReponse
    2525    {
    2626        [XmlAttribute(AttributeName="stat")]
    27         internal PwgBaseProxyReponseRetourEnum Retour { get; set; }
     27        public PwgBaseProxyReponseRetourEnum Retour { get; set; }
    2828
    2929        [XmlElement(ElementName="err")]
    30         internal PwgBaseProxyReponseError Erreur { get; set; }
     30        public PwgBaseProxyReponseError Erreur { get; set; }
    3131
    3232    }
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgBaseProxyReponseRetourEnum.cs

    r7149 r7160  
    99    [Serializable()]
    1010    [XmlRoot(ElementName = "PwgBaseProxyReponseRetourEnum")]
    11     internal enum PwgBaseProxyReponseRetourEnum : int
     11    public enum PwgBaseProxyReponseRetourEnum : int
    1212    {
    1313        [XmlEnum("unknow")]
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgCategoriesProxyResponse.cs

    r7149 r7160  
    1010    [Serializable()]
    1111    [XmlRoot(ElementName = "category")]
    12     internal class PwgCategoryProxyResponse
     12    public class PwgCategoryProxyResponse
    1313    {
    1414        [XmlAttribute(AttributeName = "id")]
    15         internal Int32 Id { get; set; }
     15        public Int32 Id { get; set; }
    1616        [XmlElement(ElementName = "uppercats")]
    17         internal String UpperCategoryId { get; set; }
     17        public String UpperCategoryId { get; set; }
    1818        [XmlElement (ElementName = "name")]
    19         internal String Name { get; set; }
     19        public String Name { get; set; }
    2020        [XmlAttribute(AttributeName = "url")]
    21         internal String Url { get; set; }
     21        public String Url { get; set; }
    2222        [XmlAttribute(AttributeName = "nb_images")]
    23         internal Int64 ImagesCount { get; set; }
     23        public Int64 ImagesCount { get; set; }
    2424        [XmlAttribute(AttributeName = "total_nb_images")]
    25         internal Int64 DeepImagesCount { get; set; }
     25        public Int64 DeepImagesCount { get; set; }
    2626        [XmlAttribute(AttributeName = "nb_categories")]
    27         internal Int64 SubCategoriesCount { get; set; }
     27        public Int64 SubCategoriesCount { get; set; }
    2828        [XmlAttribute(AttributeName = "max_date_last")]
    29         internal String LastDate { get; set; }
     29        public String LastDate { get; set; }
    3030    }
    3131
    3232    [Serializable()]
    3333    [XmlRoot(ElementName = "rsp")]
    34     internal class PwgCategoriesProxyResponse : PwgBaseProxyReponse
     34    public class PwgCategoriesProxyResponse : PwgBaseProxyReponse
    3535    {
    3636        [XmlArray("categories")]
    3737        [XmlArrayItem("category")]
    38         internal PwgCategoryProxyResponse[] Categories { get; set; }
     38        public PwgCategoryProxyResponse[] Categories { get; set; }
    3939    }
    4040}
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgImagesProxyResponse.cs

    r7149 r7160  
    1111    [Serializable()]
    1212    [XmlRoot(ElementName = "rsp")]
    13     internal class PwgImageRateProxyResponse : PwgBaseProxyReponse
     13    public class PwgImageRateProxyResponse : PwgBaseProxyReponse
    1414    {
    1515        [XmlElement("count")]
    16         internal Int32 Count { get; set; }
     16        public Int32 Count { get; set; }
    1717        [XmlElement("average")]
    18         internal String Average { get; set; }
     18        public String Average { get; set; }
    1919        [XmlElement("stdev")]
    20         internal String Stdev { get; set; }
     20        public String Stdev { get; set; }
    2121    }
    2222
    2323    [Serializable()]
    2424    [XmlRoot(ElementName = "categorie")]
    25     internal class PwgImageProxyResponse
     25    public class PwgImageProxyResponse
    2626    {
    2727        [XmlAttribute(AttributeName = "id")]
    28         internal Int32 Id { get; set; }
     28        public Int32 Id { get; set; }
    2929        [XmlAttribute(AttributeName = "width")]
    30         internal Int32 Width { get; set; }
     30        public Int32 Width { get; set; }
    3131        [XmlAttribute(AttributeName = "height")]
    32         internal Int32 Height { get; set; }
     32        public Int32 Height { get; set; }
    3333        [XmlAttribute(AttributeName = "file")]
    34         internal String File { get; set; }
     34        public String File { get; set; }
    3535        [XmlAttribute(AttributeName = "tn_url")]
    36         internal String UrlThunb { get; set; }
     36        public String UrlThunb { get; set; }
    3737        [XmlAttribute(AttributeName = "element_url")]
    38         internal String UrlElement { get; set; }
     38        public String UrlElement { get; set; }
    3939        [XmlAttribute(AttributeName = "high_url")]
    40         internal String UrlHighDef { get; set; }
     40        public String UrlHighDef { get; set; }
    4141        [XmlAttribute(AttributeName = "hit")]
    42         internal Int64 Counter { get; set; }
     42        public Int64 Counter { get; set; }
    4343
    4444        [XmlArray("tags")]
    4545        [XmlArrayItem("tag")]
    46         internal PwgTagProxyResponse[] Tags { get; set; }
     46        public PwgTagProxyResponse[] Tags { get; set; }
    4747
    4848        [XmlArray("categories")]
    4949        [XmlArrayItem("category")]
    50         internal PwgCategoryProxyResponse[] Categories { get; set; }
     50        public PwgCategoryProxyResponse[] Categories { get; set; }
    5151
    5252    }
     
    5454    [Serializable()]
    5555    [XmlRoot(ElementName = "images")]
    56     internal class PwgImageListProxyResponse
     56    public class PwgImageListProxyResponse
    5757    {
    5858        [XmlAttribute("page")]
    59         internal Int32 Page { get; set; }
     59        public Int32 Page { get; set; }
    6060        [XmlAttribute("per_page")]
    61         internal Int32 PerPage { get; set; }
     61        public Int32 PerPage { get; set; }
    6262        [XmlAttribute("count")]
    63         internal Int32 Count { get; set; }
     63        public Int32 Count { get; set; }
    6464
    6565        [XmlElement("image", typeof(PwgImageProxyResponse))]
    66         internal PwgImageProxyResponse[] Images { get; set; }
     66        public PwgImageProxyResponse[] Images { get; set; }
    6767
    6868
     
    7171    [Serializable()]
    7272    [XmlRoot(ElementName = "rsp")]
    73     internal class PwgImagesProxyResponse : PwgBaseProxyReponse
     73    public class PwgImagesProxyResponse : PwgBaseProxyReponse
    7474    {
    7575        [XmlElement("images")]
    76         internal PwgImageListProxyResponse ImageList { get; set; }
     76        public PwgImageListProxyResponse ImageList { get; set; }
    7777    }
    7878
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgSessionProxyResponse.cs

    r7149 r7160  
    1111    [XmlRoot(ElementName = "rsp")]
    1212
    13     internal class PwgSessionProxyResponse : PwgBaseProxyReponse
     13    public class PwgSessionProxyResponse : PwgBaseProxyReponse
    1414    {
    1515        [XmlElement(ElementName = "username")]
    16         internal String UserName { get; set; }
     16        public String UserName { get; set; }
    1717        [XmlElement(ElementName = "status")]
    18         internal string Status { get; set; }
     18        public string Status { get; set; }
    1919        [XmlElement(ElementName = "template")]
    20         internal String Template { get; set; }
     20        public String Template { get; set; }
    2121        [XmlElement(ElementName = "theme")]
    22         internal String Theme { get; set; }
     22        public String Theme { get; set; }
    2323        [XmlElement(ElementName = "language")]
    24         internal String Language { get; set; }
     24        public String Language { get; set; }
    2525        [XmlElement(ElementName = "charset")]
    26         internal String CharSet { get; set; }   
     26        public String CharSet { get; set; }   
    2727    }
    2828}
  • extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgTagsProxyResponse.cs

    r7149 r7160  
    1010    [Serializable()]
    1111    [XmlRoot(ElementName = "tag")]
    12     internal class PwgTagProxyResponse
     12    public class PwgTagProxyResponse
    1313    {
    1414        [XmlAttribute(AttributeName = "id")]
    15         internal Int32 Id { get; set; }
     15        public Int32 Id { get; set; }
    1616        [XmlAttribute(AttributeName = "name")]
    17         internal String Name { get; set; }
     17        public String Name { get; set; }
    1818        [XmlAttribute(AttributeName = "url_name")]
    19         internal String UrlName { get; set; }
     19        public String UrlName { get; set; }
    2020        [XmlAttribute(AttributeName = "counter")]
    21         internal Int64 Counter { get; set; }
     21        public Int64 Counter { get; set; }
    2222        [XmlAttribute(AttributeName = "url")]
    23         internal String UrlTag { get; set; }
     23        public String UrlTag { get; set; }
    2424    }
    2525
    2626    [Serializable()]
    2727    [XmlRoot(ElementName = "rsp")]
    28     internal class PwgTagsProxyResponse : PwgBaseProxyReponse
     28    public class PwgTagsProxyResponse : PwgBaseProxyReponse
    2929    {
    3030        //[XmlElement(ElementName = "tags")]
    3131        [XmlArray("tags")]
    3232        [XmlArrayItem("tag")]
    33         internal PwgTagProxyResponse[] Tags { get; set; }
     33        public PwgTagProxyResponse[] Tags { get; set; }
    3434    }
    3535}
  • extensions/PiwigoLib/PiwigoLib/Service/PwgSetupService.cs

    r7150 r7160  
    3434                    PwgConfigProxy.PwgTimeOutInSecond = PwgTimeOutInSecond.Value;
    3535                }
    36 
    37                 PwgConfigProxy.PwgServeurUri = serverURI;
     36                if (serverURI != null)
     37                {
     38                    PwgConfigProxy.PwgServeurUri = serverURI;
     39                }
    3840            }
    3941            catch (PwgProxyException ex)
Note: See TracChangeset for help on using the changeset viewer.