Commits

Anonymous committed e6998cd

added a CLASS_ID const to protocol objects in dart

  • Participants
  • Parent commits f9b67c5

Comments (0)

Files changed (1)

maven/protocol-generator-plugin/src/main/scripts/dart_generator.rb

     wi("#{static_tag} class #{camelcasetype(name)}#{parent_tag} {")
     @indent_level += 1
     if !class_id.to_s.empty?
+      wi("static const int CLASS_ID = #{class_id};")
       wi("int classId() {")
-      wi("return #{class_id};",1)
+      wi("return CLASS_ID;",1)
       wi("}")
       wi("")
     end