1. Alexey Petriashev
  2. MyLifeOrganizer

Commits

Alexey Petriashev  committed ef0e624

Core: объекты Contact, Account, AccountingSystem, Workspace

  • Participants
  • Parent commits 58e3949
  • Branches default

Comments (0)

Files changed (8)

File src/Modules/MyLifeOrganizer.Common/Account.cs

View file
+namespace MyLifeOrganizer.Common
+{
+    /// <summary>
+    /// ”четна€ запись пользовател€ в учетной системе.
+    /// </summary>
+    public class Account
+    {
+        /// <summary>
+        /// ”четна€ система.
+        /// </summary>
+        public AccountingSystem AccountingSystem { get; set; }
+
+        /// <summary>
+        /// »дентификатор пользовател€ в учетной системе.
+        /// </summary>
+        public string Identifier { get; set; }
+    }
+}

File src/Modules/MyLifeOrganizer.Common/AccountingSystem.cs

View file
+namespace MyLifeOrganizer.Common
+{
+    /// <summary>
+    /// ”четна€ система.
+    /// Ќапример: GMail, Facebook
+    /// </summary>
+    public class AccountingSystem
+    {
+        /// <summary>
+        ///  од системы.
+        /// </summary>
+        public string Code { get; set; }
+
+        /// <summary>
+        /// Web address.
+        /// </summary>
+        public string WebAddress { get; set; }
+    }
+}

File src/Modules/MyLifeOrganizer.Common/Contact.cs

View file
     /// </summary>
     public class Contact
     {
+        /// <summary>
+        /// –Ш–Љ—П.
+        /// </summary>
+        public string FirstName { get; set; }
+
+        /// <summary>
+        /// –§–∞–Љ–Є–ї–Є—П.
+        /// </summary>
+        public string LastName { get; set; }
+
+        /// <summary>
+        /// –Я–Њ—З—В–Њ–≤—Л–є –∞–і—А–µ—Б.
+        /// </summary>
+        public string Mail { get; set; }
+
+        /// <summary>
+        /// –Э–Њ–Љ–µ—А —В–µ–ї–µ—Д–Њ–љ–∞.
+        /// </summary>
+        public string PhoneNumber { get; set; }
+
+        /// <summary>
+        /// –°—Б—Л–ї–Ї–Є –љ–∞ —Г—З–µ—В–љ—Л–µ –Ј–∞–њ–Є—Б–Є –њ–Њ–ї—М–Ј–Њ–≤–∞—В–µ–ї—П –≤ –і—А—Г–≥–Є—Е —Б–Є—Б—В–µ–Љ–∞—Е.
+        /// </summary>
+        public Account[] Accounts { get; set; }
     }
 }

File src/Modules/MyLifeOrganizer.Common/Module.cs

View file
     public class Module
     {
     }
-
-    /// <summary>
-    /// ќбщий модуль. —одержит основные объекты.
-    /// </summary>
-    public class CommonModule : Module
-    {
-
-    }
 }

File src/Modules/MyLifeOrganizer.Common/MyLifeOrganizer.Common.csproj

View file
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Account.cs" />
+    <Compile Include="AccountingSystem.cs" />
+    <Compile Include="CommonModule.cs" />
     <Compile Include="Contact.cs" />
+    <Compile Include="Module.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Workspace.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 

File src/Modules/MyLifeOrganizer.Common/Workspace.cs

View file
-using MyLifeOrganizer.TimeManagement;
-
 namespace MyLifeOrganizer.Common
 {
     /// <summary>

File src/Modules/MyLifeOrganizer.TimeManagement/Format.cs

View file
-using MyLifeOrganizer.Common;
-
 namespace MyLifeOrganizer.TimeManagement
 {
     /// <summary>
     public class Format
     {
     }
-
-    public class TimeManagementModule : Module
-    {
-    }
 }

File src/Modules/MyLifeOrganizer.TimeManagement/MyLifeOrganizer.TimeManagement.csproj

View file
     <Compile Include="Context.cs" />
     <Compile Include="Format.cs" />
     <Compile Include="Formats\InvalidFormatException.cs" />
-    <Compile Include="Module.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Task.cs" />
     <Compile Include="Formats\Toodledo\ToodledoFormat.cs" />
-    <Compile Include="Workspace.cs" />
+    <Compile Include="TimeManagementModule.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\MyLifeOrganizer.Common\MyLifeOrganizer.Common.csproj">
+      <Project>{19F7C618-7FEA-4F62-A316-39A99DB920FE}</Project>
+      <Name>MyLifeOrganizer.Common</Name>
+    </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.