Movie class: add get_cast method and Role class
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 15 Aug 2010 10:15:05 +0000 (12:15 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 16 Aug 2010 13:11:07 +0000 (15:11 +0200)
src/movie.vala

index 2575c5e..e5212cb 100644 (file)
@@ -45,5 +45,14 @@ public class Movie : Object {
                print ("get_plot (%s)\n", title);
                return "";
        }
+
+       public virtual List<Role> get_cast () {
+               print ("get_cast (%s)\n", title);
+               return null;
+       }
 }
 
+public class Role {
+       public string actor_name;
+       public string character;
+}