1 //----------------------------------------------------------------------- 2 // <copyright file="UpdateProfileColorsOptions.cs" company="Patrick 'Ricky' Smith"> 3 // This file is part of the Twitterizer library (http://www.twitterizer.net) 4 // 5 // Copyright (c) 2010, Patrick "Ricky" Smith (ricky@digitally-born.com) 6 // All rights reserved. 7 // 8 // Redistribution and use in source and binary forms, with or without modification, are 9 // permitted provided that the following conditions are met: 10 // 11 // - Redistributions of source code must retain the above copyright notice, this list 12 // of conditions and the following disclaimer. 13 // - Redistributions in binary form must reproduce the above copyright notice, this list 14 // of conditions and the following disclaimer in the documentation and/or other 15 // materials provided with the distribution. 16 // - Neither the name of the Twitterizer nor the names of its contributors may be 17 // used to endorse or promote products derived from this software without specific 18 // prior written permission. 19 // 20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 21 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 24 // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 // POSSIBILITY OF SUCH DAMAGE. 30 // </copyright> 31 // <author>Ricky Smith</author> 32 // <summary>The update profile colors options class.</summary> 33 //----------------------------------------------------------------------- 34 35 namespace Twitterizer 36 { 37 #if !SILVERLIGHT 38 using System.Drawing; 39 #endif 40 41 /// <summary> 42 /// Optional properties for the <see cref="Twitterizer.TwitterUser"/>.Profile*Colors methods. 43 /// </summary> 44 public class UpdateProfileColorsOptions : OptionalProperties 45 { 46 #if !SILVERLIGHT 47 /// <summary> 48 /// Initializes a new instance of the <see cref="UpdateProfileColorsOptions"/> class. 49 /// </summary> UpdateProfileColorsOptions()50 public UpdateProfileColorsOptions() 51 { 52 BackgroundColor = Color.Empty; 53 TextColor = Color.Empty; 54 LinkColor = Color.Empty; 55 SidebarFillColor = Color.Empty; 56 SidebarBorderColor = Color.Empty; 57 } 58 59 /// <summary> 60 /// Gets or sets the color of the background. 61 /// </summary> 62 /// <value>The color of the background.</value> 63 public Color BackgroundColor { get; set; } 64 65 /// <summary> 66 /// Gets or sets the color of the text. 67 /// </summary> 68 /// <value>The color of the text.</value> 69 public Color TextColor { get; set; } 70 71 /// <summary> 72 /// Gets or sets the color of the link. 73 /// </summary> 74 /// <value>The color of the link.</value> 75 public Color LinkColor { get; set; } 76 77 /// <summary> 78 /// Gets or sets the color of the sidebar fill. 79 /// </summary> 80 /// <value>The color of the sidebar fill.</value> 81 public Color SidebarFillColor { get; set; } 82 83 /// <summary> 84 /// Gets or sets the color of the sidebar border. 85 /// </summary> 86 /// <value>The color of the sidebar border.</value> 87 public Color SidebarBorderColor { get; set; } 88 #else 89 /// <summary> 90 /// Gets or sets the color of the background. 91 /// </summary> 92 /// <value>The color of the background.</value> 93 public string BackgroundColor { get; set; } 94 95 /// <summary> 96 /// Gets or sets the color of the text. 97 /// </summary> 98 /// <value>The color of the text.</value> 99 public string TextColor { get; set; } 100 101 /// <summary> 102 /// Gets or sets the color of the link. 103 /// </summary> 104 /// <value>The color of the link.</value> 105 public string LinkColor { get; set; } 106 107 /// <summary> 108 /// Gets or sets the color of the sidebar fill. 109 /// </summary> 110 /// <value>The color of the sidebar fill.</value> 111 public string SidebarFillColor { get; set; } 112 113 /// <summary> 114 /// Gets or sets the color of the sidebar border. 115 /// </summary> 116 /// <value>The color of the sidebar border.</value> 117 public string SidebarBorderColor { get; set; } 118 #endif 119 } 120 } 121