diff options
Diffstat (limited to 'Timeline/Resources/Services')
-rw-r--r-- | Timeline/Resources/Services/Exception.Designer.cs | 49 | ||||
-rw-r--r-- | Timeline/Resources/Services/Exception.resx | 17 | ||||
-rw-r--r-- | Timeline/Resources/Services/TimelineService.Designer.cs (renamed from Timeline/Resources/Services/UserCache.Designer.cs) | 36 | ||||
-rw-r--r-- | Timeline/Resources/Services/TimelineService.resx (renamed from Timeline/Resources/Services/UserCache.resx) | 14 | ||||
-rw-r--r-- | Timeline/Resources/Services/UserDetailService.Designer.cs | 99 | ||||
-rw-r--r-- | Timeline/Resources/Services/UserDetailService.resx | 132 |
6 files changed, 16 insertions, 331 deletions
diff --git a/Timeline/Resources/Services/Exception.Designer.cs b/Timeline/Resources/Services/Exception.Designer.cs index cada1788..e6806873 100644 --- a/Timeline/Resources/Services/Exception.Designer.cs +++ b/Timeline/Resources/Services/Exception.Designer.cs @@ -117,9 +117,9 @@ namespace Timeline.Resources.Services { /// <summary>
/// Looks up a localized string similar to A present resource conflicts with the given resource..
/// </summary>
- internal static string ConfictException {
+ internal static string ConflictException {
get {
- return ResourceManager.GetString("ConfictException", resourceCulture);
+ return ResourceManager.GetString("ConflictException", resourceCulture);
}
}
@@ -259,42 +259,6 @@ namespace Timeline.Resources.Services { }
/// <summary>
- /// Looks up a localized string similar to The timeline with that name already exists..
- /// </summary>
- internal static string TimelineAlreadyExistException {
- get {
- return ResourceManager.GetString("TimelineAlreadyExistException", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to An exception happened when add or remove member on timeline..
- /// </summary>
- internal static string TimelineMemberOperationException {
- get {
- return ResourceManager.GetString("TimelineMemberOperationException", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to An exception happened when do operation {0} on the {1} member on timeline..
- /// </summary>
- internal static string TimelineMemberOperationExceptionDetail {
- get {
- return ResourceManager.GetString("TimelineMemberOperationExceptionDetail", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Timeline name is of bad format. If this is a personal timeline, it means the username is of bad format and inner exception should be a UsernameBadFormatException..
- /// </summary>
- internal static string TimelineNameBadFormatException {
- get {
- return ResourceManager.GetString("TimelineNameBadFormatException", resourceCulture);
- }
- }
-
- /// <summary>
/// Looks up a localized string similar to Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException..
/// </summary>
internal static string TimelineNotExistException {
@@ -313,15 +277,6 @@ namespace Timeline.Resources.Services { }
/// <summary>
- /// Looks up a localized string similar to The use is not a member of the timeline..
- /// </summary>
- internal static string TimelineUserNotMemberException {
- get {
- return ResourceManager.GetString("TimelineUserNotMemberException", resourceCulture);
- }
- }
-
- /// <summary>
/// Looks up a localized string similar to The user does not exist..
/// </summary>
internal static string UserNotExistException {
diff --git a/Timeline/Resources/Services/Exception.resx b/Timeline/Resources/Services/Exception.resx index 2cb0f11a..11ae5f27 100644 --- a/Timeline/Resources/Services/Exception.resx +++ b/Timeline/Resources/Services/Exception.resx @@ -135,7 +135,7 @@ <data name="BadPasswordException" xml:space="preserve">
<value>The password is wrong.</value>
</data>
- <data name="ConfictException" xml:space="preserve">
+ <data name="ConflictException" xml:space="preserve">
<value>A present resource conflicts with the given resource.</value>
</data>
<data name="HashedPasswordBadFromatException" xml:space="preserve">
@@ -183,27 +183,12 @@ <data name="PasswordBadFormatException" xml:space="preserve">
<value>Password is of bad format.</value>
</data>
- <data name="TimelineAlreadyExistException" xml:space="preserve">
- <value>The timeline with that name already exists.</value>
- </data>
- <data name="TimelineMemberOperationException" xml:space="preserve">
- <value>An exception happened when add or remove member on timeline.</value>
- </data>
- <data name="TimelineMemberOperationExceptionDetail" xml:space="preserve">
- <value>An exception happened when do operation {0} on the {1} member on timeline.</value>
- </data>
- <data name="TimelineNameBadFormatException" xml:space="preserve">
- <value>Timeline name is of bad format. If this is a personal timeline, it means the username is of bad format and inner exception should be a UsernameBadFormatException.</value>
- </data>
<data name="TimelineNotExistException" xml:space="preserve">
<value>Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException.</value>
</data>
<data name="TimelinePostNotExistException" xml:space="preserve">
<value>The timeline post does not exist. You can't do operation on it.</value>
</data>
- <data name="TimelineUserNotMemberException" xml:space="preserve">
- <value>The use is not a member of the timeline.</value>
- </data>
<data name="UserNotExistException" xml:space="preserve">
<value>The user does not exist.</value>
</data>
diff --git a/Timeline/Resources/Services/UserCache.Designer.cs b/Timeline/Resources/Services/TimelineService.Designer.cs index 28a74a6c..8212c252 100644 --- a/Timeline/Resources/Services/UserCache.Designer.cs +++ b/Timeline/Resources/Services/TimelineService.Designer.cs @@ -22,14 +22,14 @@ namespace Timeline.Resources.Services { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class UserCache {
+ internal class TimelineService {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal UserCache() {
+ internal TimelineService() {
}
/// <summary>
@@ -39,7 +39,7 @@ namespace Timeline.Resources.Services { internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.UserCache", typeof(UserCache).Assembly);
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.TimelineService", typeof(TimelineService).Assembly);
resourceMan = temp;
}
return resourceMan;
@@ -61,38 +61,20 @@ namespace Timeline.Resources.Services { }
/// <summary>
- /// Looks up a localized string similar to Found user info from cache. Entry: {0} ..
+ /// Looks up a localized string similar to The number {0} username is invalid..
/// </summary>
- internal static string LogGetCacheExist {
+ internal static string ExceptionChangeMemberUsernameBadFormat {
get {
- return ResourceManager.GetString("LogGetCacheExist", resourceCulture);
+ return ResourceManager.GetString("ExceptionChangeMemberUsernameBadFormat", resourceCulture);
}
}
/// <summary>
- /// Looks up a localized string similar to User info not exist in cache. Id: {0} ..
+ /// Looks up a localized string similar to The owner username of personal timeline is of bad format..
/// </summary>
- internal static string LogGetCacheNotExist {
+ internal static string ExceptionFindTimelineUsernameBadFormat {
get {
- return ResourceManager.GetString("LogGetCacheNotExist", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to User info remove in cache. Id: {0} ..
- /// </summary>
- internal static string LogRemoveCache {
- get {
- return ResourceManager.GetString("LogRemoveCache", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to User info set in cache. Entry: {0} ..
- /// </summary>
- internal static string LogSetCache {
- get {
- return ResourceManager.GetString("LogSetCache", resourceCulture);
+ return ResourceManager.GetString("ExceptionFindTimelineUsernameBadFormat", resourceCulture);
}
}
}
diff --git a/Timeline/Resources/Services/UserCache.resx b/Timeline/Resources/Services/TimelineService.resx index 1102108b..0429a2f8 100644 --- a/Timeline/Resources/Services/UserCache.resx +++ b/Timeline/Resources/Services/TimelineService.resx @@ -117,16 +117,10 @@ <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <data name="LogGetCacheExist" xml:space="preserve">
- <value>Found user info from cache. Entry: {0} .</value>
+ <data name="ExceptionChangeMemberUsernameBadFormat" xml:space="preserve">
+ <value>The number {0} username is invalid.</value>
</data>
- <data name="LogGetCacheNotExist" xml:space="preserve">
- <value>User info not exist in cache. Id: {0} .</value>
- </data>
- <data name="LogRemoveCache" xml:space="preserve">
- <value>User info remove in cache. Id: {0} .</value>
- </data>
- <data name="LogSetCache" xml:space="preserve">
- <value>User info set in cache. Entry: {0} .</value>
+ <data name="ExceptionFindTimelineUsernameBadFormat" xml:space="preserve">
+ <value>The owner username of personal timeline is of bad format.</value>
</data>
</root>
\ No newline at end of file diff --git a/Timeline/Resources/Services/UserDetailService.Designer.cs b/Timeline/Resources/Services/UserDetailService.Designer.cs deleted file mode 100644 index 2f586b36..00000000 --- a/Timeline/Resources/Services/UserDetailService.Designer.cs +++ /dev/null @@ -1,99 +0,0 @@ -//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Timeline.Resources.Services {
- using System;
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class UserDetailService {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal UserDetailService() {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.UserDetailService", typeof(UserDetailService).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Length of nickname can't be bigger than 10..
- /// </summary>
- internal static string ExceptionNicknameTooLong {
- get {
- return ResourceManager.GetString("ExceptionNicknameTooLong", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to A user_details entity has been created. User id is {0}. Nickname is {1}..
- /// </summary>
- internal static string LogEntityNicknameCreate {
- get {
- return ResourceManager.GetString("LogEntityNicknameCreate", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Nickname of a user_details entity has been updated to a new value. User id is {0}. New value is {1}..
- /// </summary>
- internal static string LogEntityNicknameSetNotNull {
- get {
- return ResourceManager.GetString("LogEntityNicknameSetNotNull", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Nickname of a user_details entity has been updated to null. User id is {0}..
- /// </summary>
- internal static string LogEntityNicknameSetToNull {
- get {
- return ResourceManager.GetString("LogEntityNicknameSetToNull", resourceCulture);
- }
- }
- }
-}
diff --git a/Timeline/Resources/Services/UserDetailService.resx b/Timeline/Resources/Services/UserDetailService.resx deleted file mode 100644 index ea32aeda..00000000 --- a/Timeline/Resources/Services/UserDetailService.resx +++ /dev/null @@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <data name="ExceptionNicknameTooLong" xml:space="preserve">
- <value>Length of nickname can't be bigger than 10.</value>
- </data>
- <data name="LogEntityNicknameCreate" xml:space="preserve">
- <value>A user_details entity has been created. User id is {0}. Nickname is {1}.</value>
- </data>
- <data name="LogEntityNicknameSetNotNull" xml:space="preserve">
- <value>Nickname of a user_details entity has been updated to a new value. User id is {0}. New value is {1}.</value>
- </data>
- <data name="LogEntityNicknameSetToNull" xml:space="preserve">
- <value>Nickname of a user_details entity has been updated to null. User id is {0}.</value>
- </data>
-</root>
\ No newline at end of file |