//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.18408
//
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace OnlineStore.Web.UserService {
    using System.Runtime.Serialization;
    using System;

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="UserDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class UserDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string ContactField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.AddressDto ContactAddressField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.AddressDto DeliveryAddressField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string EmailField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<bool> IsDisabledField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> LastLogonDateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string PasswordField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string PhoneNumberField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> RegisteredDateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.RoleDto RoleField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserNameField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Contact {
            get {
                return this.ContactField;
            }
            set {
                if ((object.ReferenceEquals(this.ContactField, value) != true)) {
                    this.ContactField = value;
                    this.RaisePropertyChanged("Contact");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.AddressDto ContactAddress {
            get {
                return this.ContactAddressField;
            }
            set {
                if ((object.ReferenceEquals(this.ContactAddressField, value) != true)) {
                    this.ContactAddressField = value;
                    this.RaisePropertyChanged("ContactAddress");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.AddressDto DeliveryAddress {
            get {
                return this.DeliveryAddressField;
            }
            set {
                if ((object.ReferenceEquals(this.DeliveryAddressField, value) != true)) {
                    this.DeliveryAddressField = value;
                    this.RaisePropertyChanged("DeliveryAddress");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Email {
            get {
                return this.EmailField;
            }
            set {
                if ((object.ReferenceEquals(this.EmailField, value) != true)) {
                    this.EmailField = value;
                    this.RaisePropertyChanged("Email");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<bool> IsDisabled {
            get {
                return this.IsDisabledField;
            }
            set {
                if ((this.IsDisabledField.Equals(value) != true)) {
                    this.IsDisabledField = value;
                    this.RaisePropertyChanged("IsDisabled");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> LastLogonDate {
            get {
                return this.LastLogonDateField;
            }
            set {
                if ((this.LastLogonDateField.Equals(value) != true)) {
                    this.LastLogonDateField = value;
                    this.RaisePropertyChanged("LastLogonDate");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Password {
            get {
                return this.PasswordField;
            }
            set {
                if ((object.ReferenceEquals(this.PasswordField, value) != true)) {
                    this.PasswordField = value;
                    this.RaisePropertyChanged("Password");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string PhoneNumber {
            get {
                return this.PhoneNumberField;
            }
            set {
                if ((object.ReferenceEquals(this.PhoneNumberField, value) != true)) {
                    this.PhoneNumberField = value;
                    this.RaisePropertyChanged("PhoneNumber");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> RegisteredDate {
            get {
                return this.RegisteredDateField;
            }
            set {
                if ((this.RegisteredDateField.Equals(value) != true)) {
                    this.RegisteredDateField = value;
                    this.RaisePropertyChanged("RegisteredDate");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.RoleDto Role {
            get {
                return this.RoleField;
            }
            set {
                if ((object.ReferenceEquals(this.RoleField, value) != true)) {
                    this.RoleField = value;
                    this.RaisePropertyChanged("Role");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserName {
            get {
                return this.UserNameField;
            }
            set {
                if ((object.ReferenceEquals(this.UserNameField, value) != true)) {
                    this.UserNameField = value;
                    this.RaisePropertyChanged("UserName");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="AddressDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class AddressDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string CityField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string CountryField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string StateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string StreetField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string ZipField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string City {
            get {
                return this.CityField;
            }
            set {
                if ((object.ReferenceEquals(this.CityField, value) != true)) {
                    this.CityField = value;
                    this.RaisePropertyChanged("City");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Country {
            get {
                return this.CountryField;
            }
            set {
                if ((object.ReferenceEquals(this.CountryField, value) != true)) {
                    this.CountryField = value;
                    this.RaisePropertyChanged("Country");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string State {
            get {
                return this.StateField;
            }
            set {
                if ((object.ReferenceEquals(this.StateField, value) != true)) {
                    this.StateField = value;
                    this.RaisePropertyChanged("State");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Street {
            get {
                return this.StreetField;
            }
            set {
                if ((object.ReferenceEquals(this.StreetField, value) != true)) {
                    this.StreetField = value;
                    this.RaisePropertyChanged("Street");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Zip {
            get {
                return this.ZipField;
            }
            set {
                if ((object.ReferenceEquals(this.ZipField, value) != true)) {
                    this.ZipField = value;
                    this.RaisePropertyChanged("Zip");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="RoleDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class RoleDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string DescriptionField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string NameField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Description {
            get {
                return this.DescriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Name {
            get {
                return this.NameField;
            }
            set {
                if ((object.ReferenceEquals(this.NameField, value) != true)) {
                    this.NameField = value;
                    this.RaisePropertyChanged("Name");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class FaultData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string MessageField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string FullMessageField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string StackTraceField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Message {
            get {
                return this.MessageField;
            }
            set {
                if ((object.ReferenceEquals(this.MessageField, value) != true)) {
                    this.MessageField = value;
                    this.RaisePropertyChanged("Message");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute(Order=1)]
        public string FullMessage {
            get {
                return this.FullMessageField;
            }
            set {
                if ((object.ReferenceEquals(this.FullMessageField, value) != true)) {
                    this.FullMessageField = value;
                    this.RaisePropertyChanged("FullMessage");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute(Order=2)]
        public string StackTrace {
            get {
                return this.StackTraceField;
            }
            set {
                if ((object.ReferenceEquals(this.StackTraceField, value) != true)) {
                    this.StackTraceField = value;
                    this.RaisePropertyChanged("StackTrace");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="OrderDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class OrderDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> CreatedDateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> DeliveredDateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> DispatchedDateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.OrderItemDto[] OrderItemsField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<OnlineStore.Web.UserService.OrderStatusDto> StatusField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<decimal> SubtotalField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserAddressCityField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserAddressCountryField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserAddressStateField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserAddressStreetField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserAddressZipField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserContactField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserEmailField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserIdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserNameField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string UserPhoneField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> CreatedDate {
            get {
                return this.CreatedDateField;
            }
            set {
                if ((this.CreatedDateField.Equals(value) != true)) {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> DeliveredDate {
            get {
                return this.DeliveredDateField;
            }
            set {
                if ((this.DeliveredDateField.Equals(value) != true)) {
                    this.DeliveredDateField = value;
                    this.RaisePropertyChanged("DeliveredDate");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> DispatchedDate {
            get {
                return this.DispatchedDateField;
            }
            set {
                if ((this.DispatchedDateField.Equals(value) != true)) {
                    this.DispatchedDateField = value;
                    this.RaisePropertyChanged("DispatchedDate");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.OrderItemDto[] OrderItems {
            get {
                return this.OrderItemsField;
            }
            set {
                if ((object.ReferenceEquals(this.OrderItemsField, value) != true)) {
                    this.OrderItemsField = value;
                    this.RaisePropertyChanged("OrderItems");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<OnlineStore.Web.UserService.OrderStatusDto> Status {
            get {
                return this.StatusField;
            }
            set {
                if ((this.StatusField.Equals(value) != true)) {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<decimal> Subtotal {
            get {
                return this.SubtotalField;
            }
            set {
                if ((this.SubtotalField.Equals(value) != true)) {
                    this.SubtotalField = value;
                    this.RaisePropertyChanged("Subtotal");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserAddressCity {
            get {
                return this.UserAddressCityField;
            }
            set {
                if ((object.ReferenceEquals(this.UserAddressCityField, value) != true)) {
                    this.UserAddressCityField = value;
                    this.RaisePropertyChanged("UserAddressCity");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserAddressCountry {
            get {
                return this.UserAddressCountryField;
            }
            set {
                if ((object.ReferenceEquals(this.UserAddressCountryField, value) != true)) {
                    this.UserAddressCountryField = value;
                    this.RaisePropertyChanged("UserAddressCountry");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserAddressState {
            get {
                return this.UserAddressStateField;
            }
            set {
                if ((object.ReferenceEquals(this.UserAddressStateField, value) != true)) {
                    this.UserAddressStateField = value;
                    this.RaisePropertyChanged("UserAddressState");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserAddressStreet {
            get {
                return this.UserAddressStreetField;
            }
            set {
                if ((object.ReferenceEquals(this.UserAddressStreetField, value) != true)) {
                    this.UserAddressStreetField = value;
                    this.RaisePropertyChanged("UserAddressStreet");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserAddressZip {
            get {
                return this.UserAddressZipField;
            }
            set {
                if ((object.ReferenceEquals(this.UserAddressZipField, value) != true)) {
                    this.UserAddressZipField = value;
                    this.RaisePropertyChanged("UserAddressZip");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserContact {
            get {
                return this.UserContactField;
            }
            set {
                if ((object.ReferenceEquals(this.UserContactField, value) != true)) {
                    this.UserContactField = value;
                    this.RaisePropertyChanged("UserContact");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserEmail {
            get {
                return this.UserEmailField;
            }
            set {
                if ((object.ReferenceEquals(this.UserEmailField, value) != true)) {
                    this.UserEmailField = value;
                    this.RaisePropertyChanged("UserEmail");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserId {
            get {
                return this.UserIdField;
            }
            set {
                if ((object.ReferenceEquals(this.UserIdField, value) != true)) {
                    this.UserIdField = value;
                    this.RaisePropertyChanged("UserId");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserName {
            get {
                return this.UserNameField;
            }
            set {
                if ((object.ReferenceEquals(this.UserNameField, value) != true)) {
                    this.UserNameField = value;
                    this.RaisePropertyChanged("UserName");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string UserPhone {
            get {
                return this.UserPhoneField;
            }
            set {
                if ((object.ReferenceEquals(this.UserPhoneField, value) != true)) {
                    this.UserPhoneField = value;
                    this.RaisePropertyChanged("UserPhone");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="OrderItemDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class OrderItemDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<decimal> ItemAmountField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string OrderIdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.ProductDto ProductField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<int> QuantityField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<decimal> ItemAmount {
            get {
                return this.ItemAmountField;
            }
            set {
                if ((this.ItemAmountField.Equals(value) != true)) {
                    this.ItemAmountField = value;
                    this.RaisePropertyChanged("ItemAmount");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string OrderId {
            get {
                return this.OrderIdField;
            }
            set {
                if ((object.ReferenceEquals(this.OrderIdField, value) != true)) {
                    this.OrderIdField = value;
                    this.RaisePropertyChanged("OrderId");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.ProductDto Product {
            get {
                return this.ProductField;
            }
            set {
                if ((object.ReferenceEquals(this.ProductField, value) != true)) {
                    this.ProductField = value;
                    this.RaisePropertyChanged("Product");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<int> Quantity {
            get {
                return this.QuantityField;
            }
            set {
                if ((this.QuantityField.Equals(value) != true)) {
                    this.QuantityField = value;
                    this.RaisePropertyChanged("Quantity");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="OrderStatusDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    public enum OrderStatusDto : int {

        [System.Runtime.Serialization.EnumMemberAttribute()]
        Created = 0,

        [System.Runtime.Serialization.EnumMemberAttribute()]
        Paid = 1,

        [System.Runtime.Serialization.EnumMemberAttribute()]
        Picked = 2,

        [System.Runtime.Serialization.EnumMemberAttribute()]
        Dispatched = 3,

        [System.Runtime.Serialization.EnumMemberAttribute()]
        Delivered = 4,
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="ProductDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class ProductDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private OnlineStore.Web.UserService.CategoryDto CategoryField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string DescriptionField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string ImageUrlField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<bool> IsNewField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string NameField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<decimal> UnitPriceField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public OnlineStore.Web.UserService.CategoryDto Category {
            get {
                return this.CategoryField;
            }
            set {
                if ((object.ReferenceEquals(this.CategoryField, value) != true)) {
                    this.CategoryField = value;
                    this.RaisePropertyChanged("Category");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Description {
            get {
                return this.DescriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string ImageUrl {
            get {
                return this.ImageUrlField;
            }
            set {
                if ((object.ReferenceEquals(this.ImageUrlField, value) != true)) {
                    this.ImageUrlField = value;
                    this.RaisePropertyChanged("ImageUrl");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<bool> IsNew {
            get {
                return this.IsNewField;
            }
            set {
                if ((this.IsNewField.Equals(value) != true)) {
                    this.IsNewField = value;
                    this.RaisePropertyChanged("IsNew");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Name {
            get {
                return this.NameField;
            }
            set {
                if ((object.ReferenceEquals(this.NameField, value) != true)) {
                    this.NameField = value;
                    this.RaisePropertyChanged("Name");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<decimal> UnitPrice {
            get {
                return this.UnitPriceField;
            }
            set {
                if ((this.UnitPriceField.Equals(value) != true)) {
                    this.UnitPriceField = value;
                    this.RaisePropertyChanged("UnitPrice");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="CategoryDto", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
    [System.SerializableAttribute()]
    public partial class CategoryDto : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {

        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string DescriptionField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string IdField;

        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string NameField;

        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Description {
            get {
                return this.DescriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Id {
            get {
                return this.IdField;
            }
            set {
                if ((object.ReferenceEquals(this.IdField, value) != true)) {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Name {
            get {
                return this.NameField;
            }
            set {
                if ((object.ReferenceEquals(this.NameField, value) != true)) {
                    this.NameField = value;
                    this.RaisePropertyChanged("Name");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="", ConfigurationName="UserService.IUserService")]
    public interface IUserService {

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/CreateUsers", ReplyAction="urn:IUserService/CreateUsersResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/CreateUsersFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto[] CreateUsers(OnlineStore.Web.UserService.UserDto[] userDtos);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/CreateUsers", ReplyAction="urn:IUserService/CreateUsersResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> CreateUsersAsync(OnlineStore.Web.UserService.UserDto[] userDtos);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/ValidateUser", ReplyAction="urn:IUserService/ValidateUserResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/ValidateUserFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        bool ValidateUser(string userName, string password);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/ValidateUser", ReplyAction="urn:IUserService/ValidateUserResponse")]
        System.Threading.Tasks.Task<bool> ValidateUserAsync(string userName, string password);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DisableUser", ReplyAction="urn:IUserService/DisableUserResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/DisableUserFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        bool DisableUser(OnlineStore.Web.UserService.UserDto userDto);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DisableUser", ReplyAction="urn:IUserService/DisableUserResponse")]
        System.Threading.Tasks.Task<bool> DisableUserAsync(OnlineStore.Web.UserService.UserDto userDto);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/EnableUser", ReplyAction="urn:IUserService/EnableUserResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/EnableUserFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        bool EnableUser(OnlineStore.Web.UserService.UserDto userDto);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/EnableUser", ReplyAction="urn:IUserService/EnableUserResponse")]
        System.Threading.Tasks.Task<bool> EnableUserAsync(OnlineStore.Web.UserService.UserDto userDto);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DeleteUsers", ReplyAction="urn:IUserService/DeleteUsersResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/DeleteUsersFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        void DeleteUsers(OnlineStore.Web.UserService.UserDto[] userDtos);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DeleteUsers", ReplyAction="urn:IUserService/DeleteUsersResponse")]
        System.Threading.Tasks.Task DeleteUsersAsync(OnlineStore.Web.UserService.UserDto[] userDtos);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UpdateUsers", ReplyAction="urn:IUserService/UpdateUsersResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/UpdateUsersFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto[] UpdateUsers(OnlineStore.Web.UserService.UserDto[] userDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UpdateUsers", ReplyAction="urn:IUserService/UpdateUsersResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> UpdateUsersAsync(OnlineStore.Web.UserService.UserDto[] userDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByKey", ReplyAction="urn:IUserService/GetUserByKeyResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetUserByKeyFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto GetUserByKey(System.Guid id);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByKey", ReplyAction="urn:IUserService/GetUserByKeyResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByKeyAsync(System.Guid id);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByEmail", ReplyAction="urn:IUserService/GetUserByEmailResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetUserByEmailFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto GetUserByEmail(string email);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByEmail", ReplyAction="urn:IUserService/GetUserByEmailResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByEmailAsync(string email);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByName", ReplyAction="urn:IUserService/GetUserByNameResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetUserByNameFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto GetUserByName(string userName);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUserByName", ReplyAction="urn:IUserService/GetUserByNameResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByNameAsync(string userName);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUsers", ReplyAction="urn:IUserService/GetUsersResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetUsersFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.UserDto[] GetUsers();

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetUsers", ReplyAction="urn:IUserService/GetUsersResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> GetUsersAsync();

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetRoles", ReplyAction="urn:IUserService/GetRolesResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetRolesFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.RoleDto[] GetRoles();

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetRoles", ReplyAction="urn:IUserService/GetRolesResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> GetRolesAsync();

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/CreateRoles", ReplyAction="urn:IUserService/CreateRolesResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/CreateRolesFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.RoleDto[] CreateRoles(OnlineStore.Web.UserService.RoleDto[] roleDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/CreateRoles", ReplyAction="urn:IUserService/CreateRolesResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> CreateRolesAsync(OnlineStore.Web.UserService.RoleDto[] roleDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UpdateRoles", ReplyAction="urn:IUserService/UpdateRolesResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/UpdateRolesFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.RoleDto[] UpdateRoles(OnlineStore.Web.UserService.RoleDto[] roleDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UpdateRoles", ReplyAction="urn:IUserService/UpdateRolesResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> UpdateRolesAsync(OnlineStore.Web.UserService.RoleDto[] roleDataObjects);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DeleteRoles", ReplyAction="urn:IUserService/DeleteRolesResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/DeleteRolesFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        void DeleteRoles(string[] roleList);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/DeleteRoles", ReplyAction="urn:IUserService/DeleteRolesResponse")]
        System.Threading.Tasks.Task DeleteRolesAsync(string[] roleList);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/AssignRole", ReplyAction="urn:IUserService/AssignRoleResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/AssignRoleFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        void AssignRole(System.Guid userId, System.Guid roleId);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/AssignRole", ReplyAction="urn:IUserService/AssignRoleResponse")]
        System.Threading.Tasks.Task AssignRoleAsync(System.Guid userId, System.Guid roleId);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UnassignRole", ReplyAction="urn:IUserService/UnassignRoleResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/UnassignRoleFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        void UnassignRole(System.Guid userId);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/UnassignRole", ReplyAction="urn:IUserService/UnassignRoleResponse")]
        System.Threading.Tasks.Task UnassignRoleAsync(System.Guid userId);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetRoleByUserName", ReplyAction="urn:IUserService/GetRoleByUserNameResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetRoleByUserNameFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.RoleDto GetRoleByUserName(string userName);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetRoleByUserName", ReplyAction="urn:IUserService/GetRoleByUserNameResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto> GetRoleByUserNameAsync(string userName);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetOrdersForUser", ReplyAction="urn:IUserService/GetOrdersForUserResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(OnlineStore.Web.UserService.FaultData), Action="urn:IUserService/GetOrdersForUserFaultDataFault", Name="FaultData", Namespace="http://schemas.datacontract.org/2004/07/OnlineStore.ServiceContracts.ModelDTOs")]
        OnlineStore.Web.UserService.OrderDto[] GetOrdersForUser(string userName);

        [System.ServiceModel.OperationContractAttribute(Action="urn:IUserService/GetOrdersForUser", ReplyAction="urn:IUserService/GetOrdersForUserResponse")]
        System.Threading.Tasks.Task<OnlineStore.Web.UserService.OrderDto[]> GetOrdersForUserAsync(string userName);
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IUserServiceChannel : OnlineStore.Web.UserService.IUserService, System.ServiceModel.IClientChannel {
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class UserServiceClient : System.ServiceModel.ClientBase<OnlineStore.Web.UserService.IUserService>, OnlineStore.Web.UserService.IUserService {

        public UserServiceClient() {
        }

        public UserServiceClient(string endpointConfigurationName) :
                base(endpointConfigurationName) {
        }

        public UserServiceClient(string endpointConfigurationName, string remoteAddress) :
                base(endpointConfigurationName, remoteAddress) {
        }

        public UserServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
                base(endpointConfigurationName, remoteAddress) {
        }

        public UserServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
                base(binding, remoteAddress) {
        }

        public OnlineStore.Web.UserService.UserDto[] CreateUsers(OnlineStore.Web.UserService.UserDto[] userDtos) {
            return base.Channel.CreateUsers(userDtos);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> CreateUsersAsync(OnlineStore.Web.UserService.UserDto[] userDtos) {
            return base.Channel.CreateUsersAsync(userDtos);
        }

        public bool ValidateUser(string userName, string password) {
            return base.Channel.ValidateUser(userName, password);
        }

        public System.Threading.Tasks.Task<bool> ValidateUserAsync(string userName, string password) {
            return base.Channel.ValidateUserAsync(userName, password);
        }

        public bool DisableUser(OnlineStore.Web.UserService.UserDto userDto) {
            return base.Channel.DisableUser(userDto);
        }

        public System.Threading.Tasks.Task<bool> DisableUserAsync(OnlineStore.Web.UserService.UserDto userDto) {
            return base.Channel.DisableUserAsync(userDto);
        }

        public bool EnableUser(OnlineStore.Web.UserService.UserDto userDto) {
            return base.Channel.EnableUser(userDto);
        }

        public System.Threading.Tasks.Task<bool> EnableUserAsync(OnlineStore.Web.UserService.UserDto userDto) {
            return base.Channel.EnableUserAsync(userDto);
        }

        public void DeleteUsers(OnlineStore.Web.UserService.UserDto[] userDtos) {
            base.Channel.DeleteUsers(userDtos);
        }

        public System.Threading.Tasks.Task DeleteUsersAsync(OnlineStore.Web.UserService.UserDto[] userDtos) {
            return base.Channel.DeleteUsersAsync(userDtos);
        }

        public OnlineStore.Web.UserService.UserDto[] UpdateUsers(OnlineStore.Web.UserService.UserDto[] userDataObjects) {
            return base.Channel.UpdateUsers(userDataObjects);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> UpdateUsersAsync(OnlineStore.Web.UserService.UserDto[] userDataObjects) {
            return base.Channel.UpdateUsersAsync(userDataObjects);
        }

        public OnlineStore.Web.UserService.UserDto GetUserByKey(System.Guid id) {
            return base.Channel.GetUserByKey(id);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByKeyAsync(System.Guid id) {
            return base.Channel.GetUserByKeyAsync(id);
        }

        public OnlineStore.Web.UserService.UserDto GetUserByEmail(string email) {
            return base.Channel.GetUserByEmail(email);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByEmailAsync(string email) {
            return base.Channel.GetUserByEmailAsync(email);
        }

        public OnlineStore.Web.UserService.UserDto GetUserByName(string userName) {
            return base.Channel.GetUserByName(userName);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto> GetUserByNameAsync(string userName) {
            return base.Channel.GetUserByNameAsync(userName);
        }

        public OnlineStore.Web.UserService.UserDto[] GetUsers() {
            return base.Channel.GetUsers();
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.UserDto[]> GetUsersAsync() {
            return base.Channel.GetUsersAsync();
        }

        public OnlineStore.Web.UserService.RoleDto[] GetRoles() {
            return base.Channel.GetRoles();
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> GetRolesAsync() {
            return base.Channel.GetRolesAsync();
        }

        public OnlineStore.Web.UserService.RoleDto[] CreateRoles(OnlineStore.Web.UserService.RoleDto[] roleDataObjects) {
            return base.Channel.CreateRoles(roleDataObjects);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> CreateRolesAsync(OnlineStore.Web.UserService.RoleDto[] roleDataObjects) {
            return base.Channel.CreateRolesAsync(roleDataObjects);
        }

        public OnlineStore.Web.UserService.RoleDto[] UpdateRoles(OnlineStore.Web.UserService.RoleDto[] roleDataObjects) {
            return base.Channel.UpdateRoles(roleDataObjects);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto[]> UpdateRolesAsync(OnlineStore.Web.UserService.RoleDto[] roleDataObjects) {
            return base.Channel.UpdateRolesAsync(roleDataObjects);
        }

        public void DeleteRoles(string[] roleList) {
            base.Channel.DeleteRoles(roleList);
        }

        public System.Threading.Tasks.Task DeleteRolesAsync(string[] roleList) {
            return base.Channel.DeleteRolesAsync(roleList);
        }

        public void AssignRole(System.Guid userId, System.Guid roleId) {
            base.Channel.AssignRole(userId, roleId);
        }

        public System.Threading.Tasks.Task AssignRoleAsync(System.Guid userId, System.Guid roleId) {
            return base.Channel.AssignRoleAsync(userId, roleId);
        }

        public void UnassignRole(System.Guid userId) {
            base.Channel.UnassignRole(userId);
        }

        public System.Threading.Tasks.Task UnassignRoleAsync(System.Guid userId) {
            return base.Channel.UnassignRoleAsync(userId);
        }

        public OnlineStore.Web.UserService.RoleDto GetRoleByUserName(string userName) {
            return base.Channel.GetRoleByUserName(userName);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.RoleDto> GetRoleByUserNameAsync(string userName) {
            return base.Channel.GetRoleByUserNameAsync(userName);
        }

        public OnlineStore.Web.UserService.OrderDto[] GetOrdersForUser(string userName) {
            return base.Channel.GetOrdersForUser(userName);
        }

        public System.Threading.Tasks.Task<OnlineStore.Web.UserService.OrderDto[]> GetOrdersForUserAsync(string userName) {
            return base.Channel.GetOrdersForUserAsync(userName);
        }
    }
}

{'repo_name': 'lizhi5753186/OnlineStore', 'stars': '106', 'repo_language': 'C#', 'file_name': 'AssemblyInfo.cs', 'mime_type': 'text/plain', 'hash': 6522591230280107182, 'source_dataset': 'data'}


//
//  ConfiguredAccountRow.swift
//  Multiplatform macOS
//
//  Created by Stuart Breckenridge on 13/7/20.
//  Copyright © 2020 Ranchero Software. All rights reserved.
//

import SwiftUI
import Account

struct ConfiguredAccountRow: View {

	var account: Account

	var body: some View {
		HStack(alignment: .center) {
			if let img = account.smallIcon?.image {
				Image(rsImage: img)
					.resizable()
					.frame(width: 20, height: 20)
					.aspectRatio(contentMode: .fit)
			}
			Text(account.nameForDisplay)
		}.padding(.vertical, 4)
	}

}

{'repo_name': 'Ranchero-Software/NetNewsWire', 'stars': '3552', 'repo_language': 'Swift', 'file_name': 'TestFlight.txt', 'mime_type': 'text/plain', 'hash': -3613159977264330940, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<xmsbt>
	<entry label="near03">
		<text>Yah!</text>
	</entry>
	<entry label="talk19">
		<text>\0For the first time since then, we're finally
getting back on our feet.</text>
	</entry>
	<entry label="talk36">
		<text>ĉYou're pretty studly, aren't you?
</text>
	</entry>
	<entry label="near04">
		<text>Hahhhh...</text>
	</entry>
	<entry label="talk37">
		<text>\0You'd be a great hire for our company...\0
What's your name?</text>
	</entry>
	<entry label="talk38">
		<text>\0Oh... \0\0Well, too bad. Can't hire you.</text>
	</entry>
	<entry label="talk39">
		<text>\0'Cause your name doesn't end in "\0\0son\0."</text>
	</entry>
	<entry label="0000">
		<text>What are you doing?</text>
	</entry>
	<entry label="0001">
		<text>Who are you?</text>
	</entry>
	<entry label="0002">
		<text>Bye.</text>
	</entry>
	<entry label="0003">
		<text>Why?</text>
	</entry>
	<entry label="talk00">
		<text>Hey.\0</text>
	</entry>
	<entry label="0004">
		<text>I'll buy this place!</text>
	</entry>
	<entry label="0021">
		<text>I'm Link.</text>
	</entry>
	<entry label="talk01">
		<text>Yeah?\0</text>
	</entry>
	<entry label="0005">
		<text>That sounds tough.</text>
	</entry>
	<entry label="0022">
		<text>Son?</text>
	</entry>
	<entry label="talk02">
		<text>\0Hahhh...\0</text>
	</entry>
	<entry label="0006">
		<text>Why?</text>
	</entry>
	<entry label="0023">
		<text>That's too bad.</text>
	</entry>
	<entry label="talk03">
		<text>...Hahhh...\0</text>
	</entry>
	<entry label="talk20">
		<text>	So best of luck to both of us.�</text>
	</entry>
	<entry label="0007">
		<text>Why?</text>
	</entry>
	<entry label="talk04">
		<text>\0The \0blue flame\0, huh?�</text>
	</entry>
	<entry label="talk21">
		<text>\0Yeah.</text>
	</entry>
	<entry label="0008">
		<text>Oh.</text>
	</entry>
	<entry label="talk22">
		<text>\0Taking a break.</text>
	</entry>
	<entry label="0009">
		<text>Yes.</text>
	</entry>
	<entry label="talk06">
		<text>\0Farewell then.</text>
	</entry>
	<entry label="talk23">
		<text>By the way...\0 Did you\0\0 buy that house?	</text>
	</entry>
	<entry label="talk40">
		<text>The boss, Bolson, has a strict hiring
rule: \0\0need a name ending in "son\0.\0\0"\0
No exceptions.</text>
	</entry>
	<entry label="talk07">
		<text>Oh.\0</text>
	</entry>
	<entry label="talk24">
		<text>\0Impressive. You're just a pup.
</text>
	</entry>
	<entry label="talk41">
		<text>\0"Builds team unity," he says.

Anyway...

You got some stuff to do, right?\0
Should get going, then.</text>
	</entry>
	<entry label="talk08">
		<text>\0Hello.\0</text>
	</entry>
	<entry label="talk25">
		<text>\0Don't worry about it.\0 Anyway...
</text>
	</entry>
	<entry label="talk42">
		<text>\0Well... \0\0No time like the present, right?
I should be getting on my way...

If you'd like, you should come to the
\0Akkala region\0\0\0 and say hello.

Well... \0\0Take care of yourself.</text>
	</entry>
	<entry label="talk09">
		<text>\0I'm in the middle of moving here.\0
Come talk when the work dies down.</text>
	</entry>
	<entry label="talk26">
		<text>\0Looks like I've gotta head out and leave
this place soon.</text>
	</entry>
	<entry label="talk43">
		<text>\0I'm off to my usual night spot.</text>
	</entry>
	<entry label="talk27">
		<text>\0I've been transferred.</text>
	</entry>
	<entry label="talk44">
		<text>\0I'm on lookout.</text>
	</entry>
	<entry label="talk28">
		<text>\0Mighta heard, but Bolson Construction
is planning to expand big-time.</text>
	</entry>
	<entry label="talk45">
		<text>\0How goes it?\0 How's the \0boss\0?
Doing well, I hope?</text>
	</entry>
	<entry label="talk29">
		<text>\0Yeah, big expansion.</text>
	</entry>
	<entry label="talk46">
		<text>\0Pretty sure that belongs to the
\0Hateno Ancient Tech Lab\0.\0
Better hurry up and take it back there.</text>
	</entry>
	<entry label="0010">
		<text>Uh...come again?</text>
	</entry>
	<entry label="0011">
		<text>Good.</text>
	</entry>
	<entry label="0012">
		<text>Yeah.</text>
	</entry>
	<entry label="0013">
		<text>What?</text>
	</entry>
	<entry label="talk10">
		<text>\0I'm a carpenter for \0Bolson Construction\0.
\0\0Name's Hudson.\0</text>
	</entry>
	<entry label="0014">
		<text>Transferred...</text>
	</entry>
	<entry label="talk11">
		<text>\0I'm knocking this place down.
</text>
	</entry>
	<entry label="0015">
		<text>That's great!</text>
	</entry>
	<entry label="talk12">
		<text>\0That's right. It's tough.</text>
	</entry>
	<entry label="0016">
		<text>Where will you go?</text>
	</entry>
	<entry label="talk13">
		<text>\0'Cause no one's living here.</text>
	</entry>
	<entry label="talk30">
		<text>\0Zora's Domain is north of here.\0
We're going north of that, though.
An area called the \0Akkala region\0.</text>
	</entry>
	<entry label="0017">
		<text>That's pretty far.</text>
	</entry>
	<entry label="talk14">
		<text>\0Can't help you. Ask the \0boss\0.</text>
	</entry>
	<entry label="talk31">
		<text>\0Yeah...\0well.</text>
	</entry>
	<entry label="0018">
		<text>Good luck!</text>
	</entry>
	<entry label="talk15">
		<text>\0The owner of this house took off.</text>
	</entry>
	<entry label="talk32">
		<text>\0OK then.</text>
	</entry>
	<entry label="near00">
		<text>Yo!</text>
	</entry>
	<entry label="0019">
		<text>Right.</text>
	</entry>
	<entry label="talk16">
		<text>Don't know.\0\0 Maybe skipped town without
paying the bills?</text>
	</entry>
	<entry label="near01">
		<text>Ho!</text>
	</entry>
	<entry label="talk17">
		<text>\0Answered all your questions?	</text>
	</entry>
	<entry label="talk34">
		<text>By the way...
</text>
	</entry>
	<entry label="near02">
		<text>Hmph!</text>
	</entry>
	<entry label="talk18">
		<text>\0Good.\0\0 A lot has happened since the
\0Great Calamity\0.\0\0 Tough to keep track of
it all.</text>
	</entry>
	<entry label="talk35">
		<text>Are you gonna buy that house?�</text>
	</entry>
</xmsbt>

{'repo_name': 'MrCheeze/botw-tools', 'stars': '125', 'repo_language': 'C', 'file_name': 'string256_data_0.xml', 'mime_type': 'text/xml', 'hash': -8127978077762903818, 'source_dataset': 'data'}


package org.flylib.mall.shop.service;

import org.flylib.mall.common.util.SnowflakeIdWorker;
import org.flylib.mall.common.constant.ResponseCode;
import org.flylib.mall.common.dto.ResponseData;
import org.flylib.mall.common.dto.TableData;
import org.flylib.mall.shop.entity.Topic;
import org.flylib.mall.shop.model.PageParam;
import org.flylib.mall.shop.repository.TopicRepository;
import org.flylib.mall.shop.util.ObjectConverter;
import org.flylib.mall.shop.vo.TopicMobileVO;
import org.flylib.mall.shop.vo.TopicVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
public class TopicService {
    private static final Logger log = LoggerFactory.getLogger(TopicService.class);

    @Autowired
    private TopicRepository topicRepository;
    @Autowired
    private SnowflakeIdWorker snowflakeIdWorker;

    private ResponseData doSave(Topic topic) {
        ResponseData responseData = new ResponseData();
        /**
         * responseCode = 2;系统错误
         */
        int responseCode = 2;
        String responseMsg = "系统错误";

        if (topic != null && topic.getTopicId() > 0) {
            long topicId = topic.getTopicId();
            Topic existTopic = topicRepository.findById(topicId);
            Date nowTime = new Date();
            if (existTopic == null) {
                topic.setCreateTime(nowTime);
                topic.setUpdateTime(nowTime);
                int updatedCount = topicRepository.add(topic);
                if (updatedCount == 1) {
                    responseCode = ResponseCode.OK;
                    responseMsg = "操作成功";
                } else {
                    responseCode = 3;
                    responseMsg = "插入数据库失败";
                }
            } else {
                log.info("ThisTopicExists");
                topic.setCreateTime(existTopic.getCreateTime());
                topic.setUpdateTime(nowTime);
                int updatedCount = topicRepository.update(topic);
                if (updatedCount == 1) {
                    responseCode = ResponseCode.OK;
                    responseMsg = "操作成功";
                } else {
                    responseCode = 4;
                    responseMsg = "更新数据库失败";
                }
            }
        }

        responseData.setCode(responseCode);
        responseData.setMsg(responseMsg);
        return responseData;
    }

    public ResponseData save(Topic topic) {
        if (topic == null) {
            ResponseData responseData = new ResponseData();
            responseData.setCode(1);
            responseData.setMsg("Topic为空");
            return responseData;
        } else {
            if (topic.getTopicId() < 1) {
                long newTopicId = snowflakeIdWorker.nextId();
                topic.setTopicId(newTopicId);
            }
            ResponseData responseData = doSave(topic);
            return responseData;
        }
    }

    public Topic findById(long topicId) {
        return topicRepository.findById(topicId);
    }

    public void test() {
        testTopic();
        testAnotherTopic();
    }

    private void testTopic() {
        Topic topic = new Topic();
//        long topicId = snowflakeIdWorker.nextId();
        long topicId = 456058615476781056L;
        topic.setTopicId(topicId);
        topic.setTitle("奇葩的处女座1");

        String introduction = "1.挑剔又追求完美.  \n" +
                "2.有丰富的知性，做事一丝不苟.  \n" +
                "3.有旺盛的批判精神,是个完美主义者.  \n" +
                "4.极度的厌恶虚伪与不正当的事.  \n" +
                "5.做事周到、细心、谨慎而有条理，并非常理性，甚至冷酷  \n" +
                "6.做什么事都很投入，而且好学、好奇、求知欲旺盛  \n" +
                "7.外表安静沉默  \n" +
                "8.对任何事都有一套详细的规划\n";
        String content = "处女座可能看起来很凶，其实内心是最柔软的;；处女座看起来很冷淡，但那只是保护自己的方法；" +
                "处女座很重视友情，但被伤害后绝对不再友善；处女座很容易被感动，但感动中又保有理智；处女座可能看起来" +
                "很坚强，其实是最脆弱的；处女座不爱记仇，但谁对她好谁对她不好，处女座会记得很清楚的。" +
                "\n\n处女座很特别,面对突然其来的事件可以比任何人都冷静,处理得井井有条,令人咋舌.面对感情却犹豫不决,怕自己受伤又怕伤害别人,喜欢别人实际性的关心,不喜欢物质的引诱,不清楚自己想要什麽但十分清楚自己不想要什麽.不给自己不喜欢的人丝毫机会,对自己喜欢的人超级纵容。" +
                "\n\n处女座看似冲动直率，其实是性格天真可爱；处女座看似没心没肺，其实挺会心疼人的；处女座看似大条神经，其实是搞怪天才；处女座看似热情奔放，其实对感情保守专一；处女座看似坚强洒脱，其实很害怕失去；处女座看似无理取闹，其实只想你懂他的心。" +
                "\n\n处女座其实很痛苦。表面上总是很有活力，很快乐的样子，可是没人的时候他们又总是很忧伤。处女座总会被一种莫名的悲伤笼罩，但他们不会让别人发现。处女座的人很怕被伤害怕，被抛弃，也怕带给别人伤害和不快乐，只能自己硬挺着一切。因为他承受了太多的东西。" +
                "\n\n处女座有时很忧郁，也许在外表上嘻嘻哈哈，但当自己一个人的时候，可以莫名哭泣，也许会故意找伤心的事回忆，感叹命运的悲惨，然后第二天再抱着饱满的精神面对朋友们，那种气氛也许是可以营造出的悲惨，给自己的脆弱找个理由，告诉自己如果没有那些事会很坚强，的确很坚强，至少不愿让别人看到眼泪。";

        String img = "/app/app-data/star_6_chunv.png";
        topic.setIntroduction(introduction);

        Date nowDate = new Date();
        topic.setCreateTime(nowDate);
        topic.setUpdateTime(nowDate);
        topic.setImg(img);
        topic.setContent(content);

        doSave(topic);
    }

    private void testAnotherTopic() {
        Topic topic = new Topic();
//        long topicId = snowflakeIdWorker.nextId();
        long topicId = 456058616189812736L;
        topic.setTopicId(topicId);
        topic.setTitle("狮子座男生的性格分析");

        String introduction = "狮子座的男生，看起来很坚强，不容易让人看见他们的心伤。在感情中就算分手，也会带着无所谓的面具，默默承受一切。";

        String content = "狮子座的男生，看起来很坚强，不容易让人看见他们的心伤。在感情中就算分手，也会带着无所谓的面具，默默承受一切。也正是因为这样，要强的狮子座男生，会让大家一直误以为他们对情伤无所谓，总是可以很快好起来。事实上，狮子座的男生对爱情非常有责任感，一旦爱定某个人，会非常认真付出，把对方当成自己目前的家人，甚至未来的家人，狮子座的男生一旦决定了方向，就不容易改变。如此深情付出，不难想象失恋后的狮子男生承受的这种情伤到底有多伤。在分手之后的日子，不管是一个月，一年，还是十年，甚至一生，每每想起自己曾经真诚深刻的付出，要强的狮子还是会在半夜里暗自神伤，落泪!他们也会有孩子气的一面，最喜欢与自己喜欢的人撒娇，让人无法接受，有些小男人主义。虽然这些让有些人感到好笑，但是这些会增加彼此间的感情，使大家都能够更快地了解彼此。但在外人看来，他们还有很好的领导才能和组织能力，无论处在什么样的环境，他们都是众人的焦点，大家都会自然的去听他们的指挥，因为他们有很强的能力和亲和力，使周围的朋友能够相信他们。在外面他们也需要你的配合，你必须尊敬他，让他感觉到自己处于领导地位，让外面的人认为他很有面子，其实狮子座的男生很好相处的，而且也是很理想的伴侣！";

        String img = "/app/app-data/topic_shizizuo_1.png";
        topic.setIntroduction(introduction);

        Date nowDate = new Date();
        topic.setCreateTime(nowDate);
        topic.setUpdateTime(nowDate);
        topic.setImg(img);
        topic.setContent(content);

        doSave(topic);
    }

    public List<TopicMobileVO> byPageVisible(int page, int limit) {
        int pageValue = page > 0 ? page : 0;
        limit = limit > 0 ? limit : 10;
        PageParam pageParam = new PageParam();
        pageParam.setPage(pageValue);
        pageParam.setLimit(limit);
        List<Topic> topicList = topicRepository.byPageVisible(pageParam);
        List<TopicMobileVO> voList = new ArrayList<TopicMobileVO>();
        if (topicList!=null && topicList.size() >0){
            for (Topic topic: topicList) {
                TopicMobileVO vo = ObjectConverter.topic2MVO(topic);
                // 移动端获取列表的时候，不传送话题的正文，减小传输的字节数，提高传输速度
                vo.setContent(null);
                voList.add(vo);
            }
        }
        return voList;
    }

    public TableData<TopicVO> byPageForTable(int page, int limit) {
        int pageValue = page > 0 ? page -1 : 0;
        limit = limit > 0 ? limit : 10;
        PageParam pageParam = new PageParam();
        pageParam.setPage(pageValue);
        pageParam.setLimit(limit);

        TableData<Topic> tableData = topicRepository.byPage(pageParam);
        List<Topic> topicList = tableData.getData();

        List<TopicVO> voList = new ArrayList<TopicVO>();
        if (topicList != null && topicList.size() > 0) {
            for (Topic topic : topicList) {
                voList.add(ObjectConverter.topic2VO(topic));
            }
        }

        TableData<TopicVO> result = new TableData<>();
        result.setCode(tableData.getCode());
        result.setMsg(tableData.getMsg());
        result.setCount(tableData.getCount());
        result.setData(voList);
        return result;
    }

    public int delete(long id) {
        return topicRepository.delete(id);
    }
}

{'repo_name': 'bootsrc/star-zone', 'stars': '170', 'repo_language': 'Java', 'file_name': 'Readme.txt', 'mime_type': 'text/plain', 'hash': 7537846574603161182, 'source_dataset': 'data'}


/*
 * gdipluslinecaps.h
 *
 * GDI+ AdjustableArrowCap class
 *
 * This file is part of the w32api package.
 *
 * Contributors:
 *   Created by Markus Koenig <markus@stber-koenig.de>
 *
 * THIS SOFTWARE IS NOT COPYRIGHTED
 *
 * This source code is offered for use in the public domain. You may
 * use, modify or distribute it freely.
 *
 * This code is distributed in the hope that it will be useful but
 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
 * DISCLAIMED. This includes but is not limited to warranties of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 */

#ifndef __GDIPLUS_LINECAPS_H
#define __GDIPLUS_LINECAPS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif

#ifndef __cplusplus
#error "A C++ compiler is required to include gdipluslinecaps.h."
#endif

class AdjustableArrowCap: public CustomLineCap
{
public:
	AdjustableArrowCap(REAL height, REAL width, BOOL isFilled):
		CustomLineCap(NULL, Ok)
	{
		GpAdjustableArrowCap *nativeAdjustableArrowCap = NULL;
		lastStatus = DllExports::GdipCreateAdjustableArrowCap(
				height, width, isFilled,
				&nativeAdjustableArrowCap);
		nativeCustomLineCap = nativeAdjustableArrowCap;
	}
	virtual ~AdjustableArrowCap()
	{
	}
	virtual AdjustableArrowCap* Clone() const
	{
		GpCustomLineCap *cloneCustomLineCap = NULL;
		Status status = updateStatus(DllExports::GdipCloneCustomLineCap(
				nativeCustomLineCap, &cloneCustomLineCap));
		if (status == Ok) {
			AdjustableArrowCap *result = new AdjustableArrowCap(
					cloneCustomLineCap, lastStatus);
			if (!result) {
				DllExports::GdipDeleteCustomLineCap(
						cloneCustomLineCap);
				lastStatus = OutOfMemory;
			}
			return result;
		} else {
			return NULL;
		}
	}

	REAL GetHeight() const
	{
		REAL result = 0.0f;
		updateStatus(DllExports::GdipGetAdjustableArrowCapHeight(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				&result));
		return result;
	}
	REAL GetMiddleInset() const
	{
		REAL result = 0.0f;
		updateStatus(DllExports::GdipGetAdjustableArrowCapMiddleInset(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				&result));
		return result;
	}
	REAL GetWidth() const
	{
		REAL result = 0.0f;
		updateStatus(DllExports::GdipGetAdjustableArrowCapWidth(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				&result));
		return result;
	}
	BOOL IsFilled() const
	{
		BOOL result = FALSE;
		updateStatus(DllExports::GdipGetAdjustableArrowCapFillState(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				&result));
		return result;
	}
	Status SetFillState(BOOL isFilled)
	{
		return updateStatus(DllExports::GdipSetAdjustableArrowCapFillState(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				isFilled));
	}
	Status SetHeight(REAL height)
	{
		return updateStatus(DllExports::GdipSetAdjustableArrowCapHeight(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				height));
	}
	Status SetMiddleInset(REAL middleInset)
	{
		return updateStatus(DllExports::GdipSetAdjustableArrowCapMiddleInset(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				middleInset));
	}
	Status SetWidth(REAL width)
	{
		return updateStatus(DllExports::GdipSetAdjustableArrowCapWidth(
				(GpAdjustableArrowCap*) nativeCustomLineCap,
				width));
	}

private:
	AdjustableArrowCap(GpCustomLineCap *customLineCap, Status status):
		CustomLineCap(customLineCap, status) {}
	AdjustableArrowCap(const AdjustableArrowCap&);
	AdjustableArrowCap& operator=(const AdjustableArrowCap&);
};

#endif /* __GDIPLUS_LINECAPS_H */

{'repo_name': 'xiaoweime/WProtect', 'stars': '373', 'repo_language': 'C', 'file_name': 'WProtect.h', 'mime_type': 'text/x-c', 'hash': 1701934397367958024, 'source_dataset': 'data'}


load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "go_default_library",
    srcs = [
        "expansion_generated.go",
        "horizontalpodautoscaler.go",
    ],
    importpath = "k8s.io/client-go/listers/autoscaling/v2beta1",
    visibility = ["//visibility:public"],
    deps = [
        "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library",
        "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
        "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
        "//vendor/k8s.io/client-go/tools/cache:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)

{'repo_name': 'dpetzold/kube-resource-explorer', 'stars': '115', 'repo_language': 'Go', 'file_name': 'gen_parents.go', 'mime_type': 'text/x-c', 'hash': 8512992369139039248, 'source_dataset': 'data'}


import { makeGetSet } from '../moment/get-set';
import { addFormatToken } from '../format/format';
import { addUnitAlias } from './aliases';
import { addUnitPriority } from './priorities';
import { addRegexToken, match1to2, match2, match3to4, match5to6 } from '../parse/regex';
import { addParseToken } from '../parse/token';
import { HOUR, MINUTE, SECOND } from './constants';
import toInt from '../utils/to-int';
import zeroFill from '../utils/zero-fill';
import getParsingFlags from '../create/parsing-flags';

// FORMATTING

function hFormat() {
    return this.hours() % 12 || 12;
}

function kFormat() {
    return this.hours() || 24;
}

addFormatToken('H', ['HH', 2], 0, 'hour');
addFormatToken('h', ['hh', 2], 0, hFormat);
addFormatToken('k', ['kk', 2], 0, kFormat);

addFormatToken('hmm', 0, 0, function () {
    return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
});

addFormatToken('hmmss', 0, 0, function () {
    return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
        zeroFill(this.seconds(), 2);
});

addFormatToken('Hmm', 0, 0, function () {
    return '' + this.hours() + zeroFill(this.minutes(), 2);
});

addFormatToken('Hmmss', 0, 0, function () {
    return '' + this.hours() + zeroFill(this.minutes(), 2) +
        zeroFill(this.seconds(), 2);
});

function meridiem (token, lowercase) {
    addFormatToken(token, 0, 0, function () {
        return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
    });
}

meridiem('a', true);
meridiem('A', false);

// ALIASES

addUnitAlias('hour', 'h');

// PRIORITY
addUnitPriority('hour', 13);

// PARSING

function matchMeridiem (isStrict, locale) {
    return locale._meridiemParse;
}

addRegexToken('a',  matchMeridiem);
addRegexToken('A',  matchMeridiem);
addRegexToken('H',  match1to2);
addRegexToken('h',  match1to2);
addRegexToken('k',  match1to2);
addRegexToken('HH', match1to2, match2);
addRegexToken('hh', match1to2, match2);
addRegexToken('kk', match1to2, match2);

addRegexToken('hmm', match3to4);
addRegexToken('hmmss', match5to6);
addRegexToken('Hmm', match3to4);
addRegexToken('Hmmss', match5to6);

addParseToken(['H', 'HH'], HOUR);
addParseToken(['k', 'kk'], function (input, array, config) {
    var kInput = toInt(input);
    array[HOUR] = kInput === 24 ? 0 : kInput;
});
addParseToken(['a', 'A'], function (input, array, config) {
    config._isPm = config._locale.isPM(input);
    config._meridiem = input;
});
addParseToken(['h', 'hh'], function (input, array, config) {
    array[HOUR] = toInt(input);
    getParsingFlags(config).bigHour = true;
});
addParseToken('hmm', function (input, array, config) {
    var pos = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos));
    array[MINUTE] = toInt(input.substr(pos));
    getParsingFlags(config).bigHour = true;
});
addParseToken('hmmss', function (input, array, config) {
    var pos1 = input.length - 4;
    var pos2 = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos1));
    array[MINUTE] = toInt(input.substr(pos1, 2));
    array[SECOND] = toInt(input.substr(pos2));
    getParsingFlags(config).bigHour = true;
});
addParseToken('Hmm', function (input, array, config) {
    var pos = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos));
    array[MINUTE] = toInt(input.substr(pos));
});
addParseToken('Hmmss', function (input, array, config) {
    var pos1 = input.length - 4;
    var pos2 = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos1));
    array[MINUTE] = toInt(input.substr(pos1, 2));
    array[SECOND] = toInt(input.substr(pos2));
});

// LOCALES

export function localeIsPM (input) {
    // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
    // Using charAt should be more compatible.
    return ((input + '').toLowerCase().charAt(0) === 'p');
}

export var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
export function localeMeridiem (hours, minutes, isLower) {
    if (hours > 11) {
        return isLower ? 'pm' : 'PM';
    } else {
        return isLower ? 'am' : 'AM';
    }
}

// MOMENTS

// Setting the hour should keep the time, because the user explicitly
// specified which hour he wants. So trying to maintain the same hour (in
// a new timezone) makes sense. Adding/subtracting hours does not follow
// this rule.
export var getSetHour = makeGetSet('Hours', true);

{'repo_name': 'kyokidG/html-templates', 'stars': '141', 'repo_language': 'HTML', 'file_name': 'main.js', 'mime_type': 'text/html', 'hash': 1901390641792104278, 'source_dataset': 'data'}