No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

ActorRole.cs

Description du code

ActorRole.cs est un fichier du projet BiblioBrol.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/src/.

Projet BiblioBrol :

Gestion de media en CSharp.

Pour plus d'infos, vous pouvez consulter la brève analyse.

Code source ou contenu du fichier

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace be.gaudry.bibliobrol.model
  6. {
  7. [Serializable]
  8. public class ActorRole
  9. {
  10. #region constructor and declarations
  11. private int id;
  12. private String name, value, info;
  13.  
  14. public ActorRole()
  15. : this(-1, "")
  16. {
  17. }
  18. public ActorRole(int id, String name)
  19. : this(id, name, "")
  20. {
  21. }
  22. public ActorRole(int id, String name, String value)
  23. : this(id,name,value,"")
  24. {
  25. }
  26. public ActorRole(int id, String name, String value, String info)
  27. {
  28. this.id = id;
  29. this.name = name;
  30. this.value = value;
  31. this.info = info;
  32. }
  33. /// <summary>
  34. /// Copy constructor
  35. /// </summary>
  36. /// <param name="role"></param>
  37. public ActorRole(ActorRole role)
  38. {
  39. this.id = role.id;
  40. this.name = role.name;
  41. this.value = role.value;
  42. this.info = role.info;
  43. }
  44. #endregion
  45.  
  46. #region overrided methods
  47. public override String ToString()
  48. {
  49. return name + " " + value;
  50. }
  51. public override int GetHashCode()
  52. {
  53. //todo : reimplement GetHashCode
  54. return this.ToString().GetHashCode();
  55. }
  56. public override bool Equals(Object o)
  57. {
  58. //if (this == o) return true;
  59. if (!(o is ActorRole)) return false;
  60. ActorRole p = (ActorRole)o;
  61. if (!this.name.Equals(p.name)) return false;
  62. if (!this.value.Equals(p.value)) return false;
  63. return true;
  64. }
  65. #endregion
  66.  
  67. #region getters and setters
  68. /// <summary>
  69. /// Role identifier
  70. /// </summary>
  71. public int RoleId
  72. {
  73. get { return this.id; }
  74. set { this.id = value; }
  75. }
  76. /// <summary>
  77. /// Role name (i.e. Acteur)
  78. /// </summary>
  79. public String Name
  80. {
  81. get { return this.name; }
  82. set { this.name = value; }
  83. }
  84. /// <summary>
  85. /// Role value (i.e. person name played by an actor)
  86. /// </summary>
  87. public String Value
  88. {
  89. get { return this.value; }
  90. set { this.value = value; }
  91. }
  92. /// <summary>
  93. /// Role info (i.e. film title where this actor plays)
  94. /// </summary>
  95. public String Info
  96. {
  97. get { return this.info; }
  98. set { this.info = value; }
  99. }
  100. #endregion
  101. }
  102. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/model/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1714907185 05/05/2024 13:06:25
| _identity0 octets1541007175 31/10/2018 18:32:55
| _eid0 octets1541007175 31/10/2018 18:32:55
| _LightObjects0 octets1541007175 31/10/2018 18:32:55
| _comparators0 octets1541007174 31/10/2018 18:32:54
| _aws0 octets1541007173 31/10/2018 18:32:53
| _enums0 octets1541007175 31/10/2018 18:32:55
| _dao0 octets1541007174 31/10/2018 18:32:54
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/model/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csPhone.cs4.32 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csPerson.cs5.49 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csActor.cs3.86 Ko31/10/2018 18:32:23-refusé-
Afficher le fichier .cs|.csBrolType.cs1.05 Ko31/10/2018 18:32:23-refusé-
Afficher le fichier .cs|.csGenericContainer.cs1.41 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csStatus.cs1.24 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csQuality.cs2.2 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csIBrol.cs252 octets31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csIIdentityFull.cs1.18 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csBrol.cs10.49 Ko31/10/2018 18:32:23-refusé-
Afficher le fichier .cs|.csUser.cs5.17 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csMedia.cs2.04 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csCounter.cs1.17 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csSerieItem.cs1.42 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csIIdentityLight.cs333 octets31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csBorrow.cs2.45 Ko31/10/2018 18:32:23-refusé-
Afficher le fichier .cs|.csTask.cs3.01 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csMediaBrol.cs4.97 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csBrolCategory.cs856 octets31/10/2018 18:32:23-refusé-
Afficher le fichier .cs|.csGenericStateContainer.cs777 octets31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csSerie.cs688 octets31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csModelAdapter.cs33.51 Ko31/10/2018 18:32:24-refusé-
Afficher le fichier .cs|.csActorRole.cs2.72 Ko31/10/2018 18:32:23-refusé-

Utilisation de l'explorateur de code

  • Navigation :
    • Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
    • Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
    • La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
    • Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
  • Affichage :
    • Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
  • Actions :
    • Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 16/10/2009, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/cs-bibliobrol-source-rf-model/ActorRole.cs.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.