forked from deaddog/DeadDog.Movies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Role.cs
39 lines (35 loc) · 943 Bytes
/
Role.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;
namespace DeadDog.Movies
{
public class Role : PersonCredit
{
private string rolename;
private ActorTypes actortype;
public Role(Person person, string rolename, ActorTypes actortype)
: base(person, CreditTypes.Actor)
{
this.rolename = rolename;
this.actortype = actortype;
}
public bool HasRolename
{
get { return rolename == null || rolename.Length == 0; }
}
public string Rolename
{
get { return rolename; }
set { rolename = value; }
}
public ActorTypes ActorType
{
get { return actortype; }
set { actortype = value; }
}
public override string ToString()
{
return base.ToString() + " (" + rolename + ")";
}
}
}